Skip to content

Commit 4b113f8

Browse files
committed
fix
1 parent 894fdfb commit 4b113f8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

datafusion/sqllogictest/test_files/explain.slt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ logical_plan after type_coercion SAME TEXT AS ABOVE
178178
analyzed_logical_plan SAME TEXT AS ABOVE
179179
logical_plan after rewrite_set_comparison SAME TEXT AS ABOVE
180180
logical_plan after optimize_unions SAME TEXT AS ABOVE
181+
logical_plan after unions_to_filter SAME TEXT AS ABOVE
181182
logical_plan after simplify_expressions SAME TEXT AS ABOVE
182183
logical_plan after replace_distinct_aggregate SAME TEXT AS ABOVE
183184
logical_plan after eliminate_join SAME TEXT AS ABOVE
@@ -202,6 +203,7 @@ logical_plan after push_down_leaf_projections SAME TEXT AS ABOVE
202203
logical_plan after optimize_projections TableScan: simple_explain_test projection=[a, b, c]
203204
logical_plan after rewrite_set_comparison SAME TEXT AS ABOVE
204205
logical_plan after optimize_unions SAME TEXT AS ABOVE
206+
logical_plan after unions_to_filter SAME TEXT AS ABOVE
205207
logical_plan after simplify_expressions SAME TEXT AS ABOVE
206208
logical_plan after replace_distinct_aggregate SAME TEXT AS ABOVE
207209
logical_plan after eliminate_join SAME TEXT AS ABOVE
@@ -549,6 +551,7 @@ logical_plan after type_coercion SAME TEXT AS ABOVE
549551
analyzed_logical_plan SAME TEXT AS ABOVE
550552
logical_plan after rewrite_set_comparison SAME TEXT AS ABOVE
551553
logical_plan after optimize_unions SAME TEXT AS ABOVE
554+
logical_plan after unions_to_filter SAME TEXT AS ABOVE
552555
logical_plan after simplify_expressions SAME TEXT AS ABOVE
553556
logical_plan after replace_distinct_aggregate SAME TEXT AS ABOVE
554557
logical_plan after eliminate_join SAME TEXT AS ABOVE
@@ -573,6 +576,7 @@ logical_plan after push_down_leaf_projections SAME TEXT AS ABOVE
573576
logical_plan after optimize_projections TableScan: simple_explain_test projection=[a, b, c]
574577
logical_plan after rewrite_set_comparison SAME TEXT AS ABOVE
575578
logical_plan after optimize_unions SAME TEXT AS ABOVE
579+
logical_plan after unions_to_filter SAME TEXT AS ABOVE
576580
logical_plan after simplify_expressions SAME TEXT AS ABOVE
577581
logical_plan after replace_distinct_aggregate SAME TEXT AS ABOVE
578582
logical_plan after eliminate_join SAME TEXT AS ABOVE

docs/source/user-guide/configs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ The following configuration settings are available:
168168
| datafusion.optimizer.expand_views_at_output | false | When set to true, if the returned type is a view type then the output will be coerced to a non-view. Coerces `Utf8View` to `LargeUtf8`, and `BinaryView` to `LargeBinary`. |
169169
| datafusion.optimizer.enable_sort_pushdown | true | Enable sort pushdown optimization. When enabled, attempts to push sort requirements down to data sources that can natively handle them (e.g., by reversing file/row group read order). Returns **inexact ordering**: Sort operator is kept for correctness, but optimized input enables early termination for TopK queries (ORDER BY ... LIMIT N), providing significant speedup. Memory: No additional overhead (only changes read order). Future: Will add option to detect perfectly sorted data and eliminate Sort completely. Default: true |
170170
| datafusion.optimizer.enable_leaf_expression_pushdown | true | When set to true, the optimizer will extract leaf expressions (such as `get_field`) from filter/sort/join nodes into projections closer to the leaf table scans, and push those projections down towards the leaf nodes. |
171-
| datafusion.optimizer.enable_unions_to_filter | false | When set to true, the logical optimizer will rewrite `UNION DISTINCT` branches that read from the same source and differ only by filter predicates into a single branch with a combined filter. This optimization is conservative and only applies when the branches share the same source and compatible wrapper nodes such as identical projections or aliases. |
171+
| datafusion.optimizer.enable_unions_to_filter | false | When set to true, the logical optimizer will rewrite `UNION DISTINCT` branches that read from the same source and differ only by filter predicates into a single branch with a combined filter. This optimization is conservative and only applies when the branches share the same source and compatible wrapper nodes such as identical projections or aliases. |
172172
| datafusion.explain.logical_plan_only | false | When set to true, the explain statement will only print logical plans |
173173
| datafusion.explain.physical_plan_only | false | When set to true, the explain statement will only print physical plans |
174174
| datafusion.explain.show_statistics | false | When set to true, the explain statement will print operator statistics for physical plans |

0 commit comments

Comments
 (0)