-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pipelineX](improvement) Support global runtime filter #28692
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -57,7 +57,9 @@ class AssertNumRowsOperatorX final : public StreamingOperatorX<AssertNumRowsLoca | |||||
|
||||||
[[nodiscard]] bool is_source() const override { return false; } | ||||||
|
||||||
ExchangeType get_local_exchange_type() const override { return ExchangeType::PASSTHROUGH; } | ||||||
DataDistribution get_local_exchange_type() const override { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: method 'get_local_exchange_type' can be made static [readability-convert-member-functions-to-static]
Suggested change
|
||||||
return {ExchangeType::PASSTHROUGH}; | ||||||
} | ||||||
|
||||||
private: | ||||||
friend class AssertNumRowsLocalState; | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -117,8 +117,11 @@ class ExchangeSourceOperatorX final : public OperatorX<ExchangeLocalState> { | |||||
return _sub_plan_query_statistics_recvr; | ||||||
} | ||||||
|
||||||
bool need_to_local_shuffle() const override { | ||||||
return !_is_hash_partition || OperatorX<ExchangeLocalState>::ignore_data_distribution(); | ||||||
DataDistribution get_local_exchange_type() const override { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: method 'get_local_exchange_type' can be made static [readability-convert-member-functions-to-static]
Suggested change
|
||||||
if (!_is_hash_partition || OperatorX<ExchangeLocalState>::ignore_data_distribution()) { | ||||||
return {ExchangeType::NOOP}; | ||||||
} | ||||||
return {ExchangeType::HASH_SHUFFLE}; | ||||||
} | ||||||
|
||||||
private: | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -163,17 +163,17 @@ class HashJoinProbeOperatorX final : public JoinProbeOperatorX<HashJoinProbeLoca | |||||
SourceState& source_state) const override; | ||||||
|
||||||
bool need_more_input_data(RuntimeState* state) const override; | ||||||
std::vector<TExpr> get_local_shuffle_exprs() const override { return _partition_exprs; } | ||||||
ExchangeType get_local_exchange_type() const override { | ||||||
DataDistribution get_local_exchange_type() const override { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: method 'get_local_exchange_type' can be made static [readability-convert-member-functions-to-static]
Suggested change
|
||||||
if (_join_op == TJoinOp::NULL_AWARE_LEFT_ANTI_JOIN) { | ||||||
return ExchangeType::NOOP; | ||||||
return {ExchangeType::NOOP}; | ||||||
} | ||||||
return _is_broadcast_join | ||||||
? ExchangeType::PASSTHROUGH | ||||||
? DataDistribution(ExchangeType::PASSTHROUGH) | ||||||
: (_join_distribution == TJoinDistributionType::BUCKET_SHUFFLE || | ||||||
_join_distribution == TJoinDistributionType::COLOCATE | ||||||
? ExchangeType::BUCKET_HASH_SHUFFLE | ||||||
: ExchangeType::HASH_SHUFFLE); | ||||||
? DataDistribution(ExchangeType::BUCKET_HASH_SHUFFLE, | ||||||
_partition_exprs) | ||||||
: DataDistribution(ExchangeType::HASH_SHUFFLE, _partition_exprs)); | ||||||
} | ||||||
|
||||||
private: | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -102,6 +102,14 @@ class NestedLoopJoinBuildSinkOperatorX final | |||||
Status sink(RuntimeState* state, vectorized::Block* in_block, | ||||||
SourceState source_state) override; | ||||||
|
||||||
DataDistribution get_local_exchange_type() const override { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: method 'get_local_exchange_type' can be made static [readability-convert-member-functions-to-static]
Suggested change
|
||||||
if (_join_op == TJoinOp::NULL_AWARE_LEFT_ANTI_JOIN) { | ||||||
return {ExchangeType::NOOP}; | ||||||
} | ||||||
return _child_x->ignore_data_distribution() ? DataDistribution(ExchangeType::BROADCAST) | ||||||
: DataDistribution(ExchangeType::NOOP); | ||||||
} | ||||||
|
||||||
private: | ||||||
friend class NestedLoopJoinBuildSinkLocalState; | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -227,11 +227,11 @@ class NestedLoopJoinProbeOperatorX final | |||||
return _old_version_flag ? _row_descriptor : *_intermediate_row_desc; | ||||||
} | ||||||
|
||||||
ExchangeType get_local_exchange_type() const override { | ||||||
DataDistribution get_local_exchange_type() const override { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: method 'get_local_exchange_type' can be made static [readability-convert-member-functions-to-static]
Suggested change
|
||||||
if (_join_op == TJoinOp::NULL_AWARE_LEFT_ANTI_JOIN) { | ||||||
return ExchangeType::NOOP; | ||||||
return {ExchangeType::NOOP}; | ||||||
} | ||||||
return ExchangeType::ADAPTIVE_PASSTHROUGH; | ||||||
return {ExchangeType::ADAPTIVE_PASSTHROUGH}; | ||||||
} | ||||||
|
||||||
const RowDescriptor& row_desc() override { | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -105,11 +105,11 @@ class PartitionSortSinkOperatorX final : public DataSinkOperatorX<PartitionSortS | |||||
Status open(RuntimeState* state) override; | ||||||
Status sink(RuntimeState* state, vectorized::Block* in_block, | ||||||
SourceState source_state) override; | ||||||
ExchangeType get_local_exchange_type() const override { | ||||||
DataDistribution get_local_exchange_type() const override { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: method 'get_local_exchange_type' can be made static [readability-convert-member-functions-to-static]
Suggested change
|
||||||
if (_topn_phase == TPartTopNPhase::TWO_PHASE_GLOBAL) { | ||||||
return ExchangeType::NOOP; | ||||||
return DataSinkOperatorX<PartitionSortSinkLocalState>::get_local_exchange_type(); | ||||||
} | ||||||
return ExchangeType::PASSTHROUGH; | ||||||
return {ExchangeType::PASSTHROUGH}; | ||||||
} | ||||||
|
||||||
private: | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: method 'get_local_exchange_type' can be made static [readability-convert-member-functions-to-static]