MCPcopy Create free account
hub / github.com/apache/madlib / svec_contains

Function svec_contains

methods/svec_util/src/pg_gp/svec_util.c:375–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373Datum svec_contains(PG_FUNCTION_ARGS);
374PG_FUNCTION_INFO_V1( svec_contains );
375Datum svec_contains(PG_FUNCTION_ARGS)
376{
377 SvecType *svec1 = PG_GETARG_SVECTYPE_P(0);
378 SvecType *svec2 = PG_GETARG_SVECTYPE_P(1);
379 SparseData left = sdata_from_svec(svec1);
380 SparseData right = sdata_from_svec(svec2);
381 PG_RETURN_BOOL(sparsedata_contains(left,right));
382}
383
384PG_FUNCTION_INFO_V1( svec_count );
385/**

Callers

nothing calls this directly

Calls 2

sdata_from_svecFunction · 0.85
sparsedata_containsFunction · 0.85

Tested by

no test coverage detected