MCPcopy Create free account
hub / github.com/apache/cloudberry / check_float8_array

Function check_float8_array

src/backend/utils/adt/float.c:2861–2875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2859 */
2860
2861static float8 *
2862check_float8_array(ArrayType *transarray, const char *caller, int n)
2863{
2864 /*
2865 * We expect the input to be an N-element float array; verify that. We
2866 * don't need to use deconstruct_array() since the array data is just
2867 * going to look like a C array of N float8 values.
2868 */
2869 if (ARR_NDIM(transarray) != 1 ||
2870 ARR_DIMS(transarray)[0] != n ||
2871 ARR_HASNULL(transarray) ||
2872 ARR_ELEMTYPE(transarray) != FLOAT8OID)
2873 elog(ERROR, "%s: expected %d-element float8 array", caller, n);
2874 return (float8 *) ARR_DATA_PTR(transarray);
2875}
2876
2877/*
2878 * float8_combine

Callers 15

float8_combineFunction · 0.85
float8_accumFunction · 0.85
float4_accumFunction · 0.85
float8_avgFunction · 0.85
float8_var_popFunction · 0.85
float8_var_sampFunction · 0.85
float8_stddev_popFunction · 0.85
float8_stddev_sampFunction · 0.85
float8_regr_accumFunction · 0.85
float8_regr_combineFunction · 0.85
float8_regr_sxxFunction · 0.85
float8_regr_syyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected