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

Function svec_from_string

methods/svec_util/src/pg_gp/svec_util.c:75–80  ·  view source on GitHub ↗

* svec_from_string - converts a text into an svec */

Source from the content-addressed store, hash-verified

73 * svec_from_string - converts a text into an svec
74 */
75Datum svec_from_string(PG_FUNCTION_ARGS)
76{
77 char *str = pstrdup(text_to_cstring(PG_GETARG_TEXT_P(0)));
78 SvecType *result = svec_in_internal(str);
79 PG_RETURN_SVECTYPE_P(result);
80}
81
82typedef struct
83{

Callers

nothing calls this directly

Calls 1

svec_in_internalFunction · 0.85

Tested by

no test coverage detected