Skip to content

Commit 9e146aa

Browse files
committed
use option
1 parent 767054c commit 9e146aa

File tree

1 file changed

+7
-1
lines changed
  • datafusion/physical-plan/src/sorts

1 file changed

+7
-1
lines changed

datafusion/physical-plan/src/sorts/sort.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,13 @@ impl ExecutionPlan for SortExec {
11001100
context.runtime_env(),
11011101
&self.metrics_set,
11021102
)?;
1103-
let input_exec = if input_exec.supports_dynamic_filter_pushdown() {
1103+
let input_exec = if context
1104+
.session_config()
1105+
.options()
1106+
.optimizer
1107+
.enable_dynamic_filter_pushdown
1108+
&& input_exec.supports_dynamic_filter_pushdown()
1109+
{
11041110
input_exec
11051111
.push_down_dynamic_filter(topk.dynamic_filter_source())?
11061112
.unwrap_or(input_exec)

0 commit comments

Comments
 (0)