◆ GetTypeName()
| const string duckdb::AggregateStateType::GetTypeName |
( |
const LogicalType & | type | ) |
|
|
static |
140591 {
140592 D_ASSERT(type.id() == LogicalTypeId::AGGREGATE_STATE);
140593 auto info = type.AuxInfo();
140594 if (!info) {
140595 return "AGGREGATE_STATE<?>";
140596 }
140597 auto aggr_state = info->Cast<AggregateStateTypeInfo>().state_type;
140598 return "AGGREGATE_STATE<" + aggr_state.function_name + "(" +
140599 StringUtil::Join(aggr_state.bound_argument_types, aggr_state.bound_argument_types.size(),
", ",
140600 [](const LogicalType &arg_type) { return arg_type.ToString(); }) +
140601 ")" + "::" + aggr_state.return_type.ToString() + ">";
140602}
static DUCKDB_API string Join(const vector< string > &input, const string &separator)
Join multiple strings into one string. Components are concatenated by the given separator.
Definition duckdb.cpp:109497
◆ GetStateType()
140584 {
140585 D_ASSERT(type.id() == LogicalTypeId::AGGREGATE_STATE);
140586 auto info = type.AuxInfo();
140587 D_ASSERT(info);
140588 return info->Cast<AggregateStateTypeInfo>().state_type;
140589}
The documentation for this struct was generated from the following files: