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

Function init_format_out_config

contrib/formatter_fixedwidth/fixedwidth.c:395–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395static void
396init_format_out_config(FormatConfig *format_out_config, int ncolumns, TupleDesc tupdesc, FunctionCallInfo fcinfo)
397{
398 load_format_config(format_out_config, fcinfo);
399 validate_format_params(format_out_config, tupdesc);
400
401 if (format_out_config->null_value != NULL)
402 {
403 fill_null_with_blanks_list(format_out_config);
404 }
405
406 format_out_config->conv_functions = FORMATTER_GET_CONVERSION_FUNCS(fcinfo);
407 format_out_config->fldIndexes = CopyGetAttnums(tupdesc, FORMATTER_GET_RELATION(fcinfo), format_out_config->fldNames);
408}
409
410static void
411get_tuple_info(TupleDesc tupdesc, int *r_ncolumns, format_t **r_myData, char **data,

Callers 1

get_tuple_infoFunction · 0.85

Calls 4

load_format_configFunction · 0.85
validate_format_paramsFunction · 0.85
CopyGetAttnumsFunction · 0.85

Tested by

no test coverage detected