Skip to content

Commit 894fdfb

Browse files
committed
fix ci
1 parent 69c398b commit 894fdfb

File tree

2 files changed

+4
-28
lines changed

2 files changed

+4
-28
lines changed

datafusion/common/src/config.rs

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,35 +1169,11 @@ config_namespace! {
11691169
/// towards the leaf nodes.
11701170
pub enable_leaf_expression_pushdown: bool, default = true
11711171

1172-
/// When set to true, the logical optimizer will rewrite `UNION DISTINCT`
1173-
/// branches that read from the same source and differ only by filter predicates
1174-
/// into a single branch with a combined filter.
1175-
///
1176-
/// This optimization is conservative: it only applies when the `UNION DISTINCT`
1172+
/// When set to true, the logical optimizer will rewrite `UNION DISTINCT` branches that
1173+
/// read from the same source and differ only by filter predicates into a single branch
1174+
/// with a combined filter. This optimization is conservative and only applies when the
11771175
/// branches share the same source and compatible wrapper nodes such as identical
11781176
/// projections or aliases.
1179-
///
1180-
/// Example:
1181-
///
1182-
/// Disabled (`false`, default):
1183-
/// ```text
1184-
/// Distinct:
1185-
/// Union
1186-
/// Projection: test.col_int32 AS a, test.col_uint32 AS b
1187-
/// Filter: test.col_int32 = Int32(1)
1188-
/// TableScan: test
1189-
/// Projection: test.col_int32 AS a, test.col_uint32 AS b
1190-
/// Filter: test.col_uint32 = UInt32(5)
1191-
/// TableScan: test
1192-
/// ```
1193-
///
1194-
/// Enabled (`true`):
1195-
/// ```text
1196-
/// Distinct:
1197-
/// Projection: test.col_int32 AS a, test.col_uint32 AS b
1198-
/// Filter: test.col_int32 = Int32(1) OR test.col_uint32 = UInt32(5)
1199-
/// TableScan: test
1200-
/// ```
12011177
pub enable_unions_to_filter: bool, default = false
12021178
}
12031179
}

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. See `datafusion/sqllogictest/test_files/union.slt` for examples. |
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)