Skip to content

Commit 12d314f

Browse files
authored
Merge branch 'main' into implement_groups_accumulator_count_distinct_primitive_types
2 parents ba140a0 + 4b8c1d9 commit 12d314f

77 files changed

Lines changed: 14187 additions & 10252 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ arrow-avro = { version = "58.1.0", default-features = false, features = [
100100
"xz",
101101
] }
102102
arrow-buffer = { version = "58.1.0", default-features = false }
103+
arrow-data = { version = "58.1.0", default-features = false }
103104
arrow-flight = { version = "58.1.0", features = [
104105
"flight-sql-experimental",
105106
] }
@@ -192,7 +193,7 @@ strum = "0.28.0"
192193
strum_macros = "0.28.0"
193194
tempfile = "3"
194195
testcontainers-modules = { version = "0.15" }
195-
tokio = { version = "1.51", features = ["macros", "rt", "sync"] }
196+
tokio = { version = "1.52", features = ["macros", "rt", "sync"] }
196197
tokio-stream = "0.1"
197198
tokio-util = "0.7"
198199
url = "2.5.7"

datafusion/common/src/config.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,15 @@ config_namespace! {
311311
/// By default, `nulls_max` is used to follow Postgres's behavior.
312312
/// postgres rule: <https://www.postgresql.org/docs/current/queries-order.html>
313313
pub default_null_ordering: String, default = "nulls_max".to_string()
314+
315+
/// When set to true, DataFusion may remove `ORDER BY` clauses from
316+
/// subqueries or CTEs during SQL planning when their ordering cannot
317+
/// affect the result, such as when no `LIMIT` or other
318+
/// order-sensitive operator depends on them.
319+
///
320+
/// Disable this option to preserve explicit subquery ordering in the
321+
/// planned query.
322+
pub enable_subquery_sort_elimination: bool, default = true
314323
}
315324
}
316325

datafusion/core/tests/fuzz_cases/join_fuzz.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,14 @@ fn make_staggered_batches_i32(len: usize, with_extra_column: bool) -> Vec<Record
12761276
input12.sort_unstable();
12771277
let input1 = Int32Array::from_iter_values(input12.clone().into_iter().map(|k| k.0));
12781278
let input2 = Int32Array::from_iter_values(input12.clone().into_iter().map(|k| k.1));
1279-
let input3 = Int32Array::from_iter_values(input3);
1279+
let input3 = Int32Array::from_iter(input3.into_iter().map(|v| {
1280+
// ~10% NULLs in filter column to exercise NULL filter handling
1281+
if rng.random_range(0..10) == 0 {
1282+
None
1283+
} else {
1284+
Some(v)
1285+
}
1286+
}));
12801287
let input4 = Int32Array::from_iter_values(input4);
12811288

12821289
let mut columns = vec![

0 commit comments

Comments
 (0)