This is an automated email from the ASF dual-hosted git repository.

jeffreyvo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new b63a9607c3 minor: Remove extra line break in explain physical plan 
(#17303)
b63a9607c3 is described below

commit b63a9607c389ef233f1a843a4f3192b429dee51c
Author: Nuno Faria <nunofpfa...@gmail.com>
AuthorDate: Sun Aug 24 01:43:14 2025 +0100

    minor: Remove extra line break in explain physical plan (#17303)
---
 datafusion/datasource-parquet/src/source.rs               | 2 +-
 datafusion/sqllogictest/test_files/parquet_statistics.slt | 9 +++------
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/datafusion/datasource-parquet/src/source.rs 
b/datafusion/datasource-parquet/src/source.rs
index caec7db0ce..1277ec52ad 100644
--- a/datafusion/datasource-parquet/src/source.rs
+++ b/datafusion/datasource-parquet/src/source.rs
@@ -668,7 +668,7 @@ impl FileSource for ParquetSource {
                             .map(|item| format!("{item}"))
                             .collect_vec();
                         guarantees.sort();
-                        writeln!(
+                        write!(
                             f,
                             ", pruning_predicate={}, required_guarantees=[{}]",
                             pruning_predicate.predicate_expr(),
diff --git a/datafusion/sqllogictest/test_files/parquet_statistics.slt 
b/datafusion/sqllogictest/test_files/parquet_statistics.slt
index 6c0c96c74c..f9e8990299 100644
--- a/datafusion/sqllogictest/test_files/parquet_statistics.slt
+++ b/datafusion/sqllogictest/test_files/parquet_statistics.slt
@@ -62,8 +62,7 @@ physical_plan
 01)CoalesceBatchesExec: target_batch_size=8192, statistics=[Rows=Inexact(2), 
Bytes=Inexact(31), [(Col[0]: Min=Exact(Int64(1)) Max=Exact(Int64(1)) 
Null=Inexact(0))]]
 02)--FilterExec: column1@0 = 1, statistics=[Rows=Inexact(2), 
Bytes=Inexact(31), [(Col[0]: Min=Exact(Int64(1)) Max=Exact(Int64(1)) 
Null=Inexact(0))]]
 03)----RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=2, 
statistics=[Rows=Inexact(5), Bytes=Inexact(121), [(Col[0]: 
Min=Inexact(Int64(1)) Max=Inexact(Int64(4)) Null=Inexact(0))]]
-04)------DataSourceExec: file_groups={2 groups: 
[[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/0.parquet],
 
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/1.parquet]]},
 projection=[column1], file_type=parquet, predicate=column1@0 = 1, 
pruning_predicate=column1_null_count@2 != row_count@3 AND column1_min@0 <= 1 
AND 1 <= column1_max@1, required_guarantees=[column1 in (1)]
-05), statistics=[Rows=Inexact(5), Bytes=Inexact(121), [(Col[0]: 
Min=Inexact(Int64(1)) Max=Inexact(Int64(4)) Null=Inexact(0))]]
+04)------DataSourceExec: file_groups={2 groups: 
[[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/0.parquet],
 
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/1.parquet]]},
 projection=[column1], file_type=parquet, predicate=column1@0 = 1, 
pruning_predicate=column1_null_count@2 != row_count@3 AND column1_min@0 <= 1 
AND 1 <= column1_max@1, required_guarantees=[column1 in (1)], 
statistics=[Rows=Inexact(5), Bytes [...]
 
 # cleanup
 statement ok
@@ -89,8 +88,7 @@ physical_plan
 01)CoalesceBatchesExec: target_batch_size=8192, statistics=[Rows=Inexact(2), 
Bytes=Inexact(31), [(Col[0]: Min=Exact(Int64(1)) Max=Exact(Int64(1)) 
Null=Inexact(0))]]
 02)--FilterExec: column1@0 = 1, statistics=[Rows=Inexact(2), 
Bytes=Inexact(31), [(Col[0]: Min=Exact(Int64(1)) Max=Exact(Int64(1)) 
Null=Inexact(0))]]
 03)----RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=2, 
statistics=[Rows=Inexact(5), Bytes=Inexact(121), [(Col[0]: 
Min=Inexact(Int64(1)) Max=Inexact(Int64(4)) Null=Inexact(0))]]
-04)------DataSourceExec: file_groups={2 groups: 
[[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/0.parquet],
 
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/1.parquet]]},
 projection=[column1], file_type=parquet, predicate=column1@0 = 1, 
pruning_predicate=column1_null_count@2 != row_count@3 AND column1_min@0 <= 1 
AND 1 <= column1_max@1, required_guarantees=[column1 in (1)]
-05), statistics=[Rows=Inexact(5), Bytes=Inexact(121), [(Col[0]: 
Min=Inexact(Int64(1)) Max=Inexact(Int64(4)) Null=Inexact(0))]]
+04)------DataSourceExec: file_groups={2 groups: 
[[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/0.parquet],
 
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/1.parquet]]},
 projection=[column1], file_type=parquet, predicate=column1@0 = 1, 
pruning_predicate=column1_null_count@2 != row_count@3 AND column1_min@0 <= 1 
AND 1 <= column1_max@1, required_guarantees=[column1 in (1)], 
statistics=[Rows=Inexact(5), Bytes [...]
 
 # cleanup
 statement ok
@@ -117,8 +115,7 @@ physical_plan
 01)CoalesceBatchesExec: target_batch_size=8192, statistics=[Rows=Absent, 
Bytes=Absent, [(Col[0]:)]]
 02)--FilterExec: column1@0 = 1, statistics=[Rows=Absent, Bytes=Absent, 
[(Col[0]: Min=Exact(Int64(1)) Max=Exact(Int64(1)))]]
 03)----RepartitionExec: partitioning=RoundRobinBatch(4), input_partitions=2, 
statistics=[Rows=Absent, Bytes=Absent, [(Col[0]:)]]
-04)------DataSourceExec: file_groups={2 groups: 
[[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/0.parquet],
 
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/1.parquet]]},
 projection=[column1], file_type=parquet, predicate=column1@0 = 1, 
pruning_predicate=column1_null_count@2 != row_count@3 AND column1_min@0 <= 1 
AND 1 <= column1_max@1, required_guarantees=[column1 in (1)]
-05), statistics=[Rows=Absent, Bytes=Absent, [(Col[0]:)]]
+04)------DataSourceExec: file_groups={2 groups: 
[[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/0.parquet],
 
[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/parquet_statistics/test_table/1.parquet]]},
 projection=[column1], file_type=parquet, predicate=column1@0 = 1, 
pruning_predicate=column1_null_count@2 != row_count@3 AND column1_min@0 <= 1 
AND 1 <= column1_max@1, required_guarantees=[column1 in (1)], 
statistics=[Rows=Absent, Bytes=Abs [...]
 
 # cleanup
 statement ok


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@datafusion.apache.org
For additional commands, e-mail: commits-h...@datafusion.apache.org

Reply via email to