We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e4d479 commit 4bbf505Copy full SHA for 4bbf505
datafusion/physical-plan/src/unnest.rs
@@ -1376,17 +1376,17 @@ mod tests {
1376
// NULL arrays still get length 0, but empty arrays get length 1
1377
verify_longest_length_with_options(
1378
&[Arc::clone(&list_array)],
1379
- false, // preserve_nulls
1380
- true, // preserve_empty_as_null
+ false, // preserve_nulls
+ true, // preserve_empty_as_null
1381
vec![3, 1, 0, 1, 0, 2], // index 1 (empty []) now gets length 1
1382
)?;
1383
1384
// preserve_nulls=true, preserve_empty_as_null=true (Spark's explode_outer behavior)
1385
// Both NULL arrays and empty arrays get length 1
1386
1387
1388
- true, // preserve_nulls
1389
+ true, // preserve_nulls
1390
vec![3, 1, 1, 1, 1, 2], // index 1 (empty []) gets length 1, NULLs also get 1
1391
1392
0 commit comments