MCPcopy Create free account
hub / github.com/duckdb/duckdb / GetAlias

Function GetAlias

src/planner/binder/tableref/bind_table_function.cpp:172–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172static string GetAlias(const TableFunctionRef &ref) {
173 if (!ref.alias.empty()) {
174 return ref.alias;
175 }
176 if (ref.function && ref.function->GetExpressionType() == ExpressionType::FUNCTION) {
177 auto &function_expr = ref.function->Cast<FunctionExpression>();
178 return function_expr.function_name;
179 }
180 return string();
181}
182
183BoundStatement Binder::BindTableFunctionInternal(TableFunction &table_function, const TableFunctionRef &ref,
184 vector<Value> parameters, named_parameter_map_t named_parameters,

Callers 10

ColumnNotFoundErrorMethod · 0.85
EntryBindingMethod · 0.85
TableBindingMethod · 0.85
GetTableRefMethod · 0.85
GetTableRefMethod · 0.85
GetTableRefMethod · 0.85
GetTableRefMethod · 0.85
ToStringMethod · 0.85
IsJSONTypeMethod · 0.85

Calls 2

GetExpressionTypeMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected