LogicalDistinct filters duplicate entries from its child operator.
More...
|
|
static constexpr const LogicalOperatorType | TYPE = LogicalOperatorType::LOGICAL_DISTINCT |
|
| void | ResolveTypes () override |
| | Resolve types for this specific operator.
|
LogicalDistinct filters duplicate entries from its child operator.
◆ LogicalDistinct() [1/2]
| duckdb::LogicalDistinct::LogicalDistinct |
( |
DistinctType | distinct_type | ) |
|
|
explicit |
382005}
DistinctType distinct_type
Whether or not this is a DISTINCT or DISTINCT ON.
Definition duckdb.cpp:203894
◆ LogicalDistinct() [2/2]
382009}
vector< unique_ptr< Expression > > distinct_targets
The set of distinct targets.
Definition duckdb.cpp:203896
◆ ParamsToString()
Reimplemented from duckdb::LogicalOperator.
382011 {
382012 auto result = LogicalOperator::ParamsToString();
382014 result["Distinct Targets"] =
382016 [](const unique_ptr<Expression> &child) { return child->GetName(); });
382017 }
382018 SetParamsEstimatedCardinality(result);
382019 return result;
382020}
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
◆ GetColumnBindings()
Reimplemented from duckdb::LogicalOperator.
203903 {
203904 return children[0]->GetColumnBindings();
203905 }
vector< unique_ptr< LogicalOperator > > children
The set of children of the operator.
Definition duckdb.hpp:21262
◆ Serialize()
| void duckdb::LogicalDistinct::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::LogicalOperator.
416711 {
416712 LogicalOperator::Serialize(serializer);
416713 serializer.WriteProperty<DistinctType>(200,
"distinct_type",
distinct_type);
416714 serializer.WritePropertyWithDefault<vector<unique_ptr<Expression>>>(201,
"distinct_targets",
distinct_targets);
416715 serializer.WritePropertyWithDefault<unique_ptr<BoundOrderModifier>>(202,
"order_by",
order_by);
416716}
unique_ptr< BoundOrderModifier > order_by
The order by modifier (optional, only for distinct on).
Definition duckdb.cpp:203898
◆ Deserialize()
416718 {
416719 auto distinct_type = deserializer.ReadProperty<DistinctType>(200,
"distinct_type");
416720 auto distinct_targets = deserializer.ReadPropertyWithDefault<vector<unique_ptr<Expression>>>(201,
"distinct_targets");
416722 deserializer.ReadPropertyWithDefault<unique_ptr<BoundOrderModifier>>(202, "order_by", result->order_by);
416723 return std::move(result);
416724}
◆ ResolveTypes()
| void duckdb::LogicalDistinct::ResolveTypes |
( |
| ) |
|
|
overrideprotectedvirtual |
Resolve types for this specific operator.
Implements duckdb::LogicalOperator.
382022 {
382024}
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: