LogicalUnnest represents the logical UNNEST operator.
More...
|
|
static constexpr const LogicalOperatorType | TYPE = LogicalOperatorType::LOGICAL_UNNEST |
|
| void | ResolveTypes () override |
| | Resolve types for this specific operator.
|
LogicalUnnest represents the logical UNNEST operator.
◆ LogicalUnnest()
| duckdb::LogicalUnnest::LogicalUnnest |
( |
idx_t | unnest_index | ) |
|
|
inlineexplicit |
206346 : LogicalOperator(LogicalOperatorType::LOGICAL_UNNEST), unnest_index(unnest_index) {
206347 }
◆ GetColumnBindings()
Reimplemented from duckdb::LogicalOperator.
383169 {
383170 auto child_bindings =
children[0]->GetColumnBindings();
383172 child_bindings.emplace_back(unnest_index, i);
383173 }
383174 return child_bindings;
383175}
vector< unique_ptr< LogicalOperator > > children
The set of children of the operator.
Definition duckdb.hpp:21262
vector< unique_ptr< Expression > > expressions
The set of expressions contained within the operator, if any.
Definition duckdb.hpp:21264
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
◆ Serialize()
| void duckdb::LogicalUnnest::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::LogicalOperator.
417059 {
417060 LogicalOperator::Serialize(serializer);
417061 serializer.WritePropertyWithDefault<
idx_t>(200,
"unnest_index", unnest_index);
417062 serializer.WritePropertyWithDefault<vector<unique_ptr<Expression>>>(201,
"expressions",
expressions);
417063}
◆ Deserialize()
417065 {
417066 auto unnest_index = deserializer.ReadPropertyWithDefault<
idx_t>(200,
"unnest_index");
417067 auto result = duckdb::unique_ptr<LogicalUnnest>(new LogicalUnnest(unnest_index));
417068 deserializer.ReadPropertyWithDefault<vector<unique_ptr<Expression>>>(201, "expressions", result->expressions);
417069 return std::move(result);
417070}
◆ GetTableIndex()
| vector< idx_t > duckdb::LogicalUnnest::GetTableIndex |
( |
| ) |
const |
|
overridevirtual |
Returns the set of table indexes of this operator.
Reimplemented from duckdb::LogicalOperator.
383184 {
383185 return vector<idx_t> {unnest_index};
383186}
◆ GetName()
| string duckdb::LogicalUnnest::GetName |
( |
| ) |
const |
|
overridevirtual |
Reimplemented from duckdb::LogicalOperator.
383188 {
383189#ifdef DEBUG
383192 }
383193#endif
383194 return LogicalOperator::GetName();
383195}
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002
static bool debug_print_bindings
Whether to print bindings when printing the plan (debug mode only).
Definition duckdb.hpp:40040
◆ ResolveTypes()
| void duckdb::LogicalUnnest::ResolveTypes |
( |
| ) |
|
|
overrideprotectedvirtual |
Resolve types for this specific operator.
Implements duckdb::LogicalOperator.
383177 {
383180 types.push_back(expr->return_type);
383181 }
383182}
vector< LogicalType > types
The types returned by this logical operator. Set by calling LogicalOperator::ResolveTypes.
Definition duckdb.hpp:21266
The documentation for this class was generated from the following file: