zhuqi-lucas commented on code in PR #14922:
URL: https://github.com/apache/datafusion/pull/14922#discussion_r1976514971


##########
datafusion/sqllogictest/test_files/insert_to_external.slt:
##########
@@ -456,13 +456,16 @@ explain insert into table_without_values select c1 from 
aggregate_test_100 order
 ----
 logical_plan
 01)Dml: op=[Insert Into] table=[table_without_values]
-02)--Projection: aggregate_test_100.c1 AS c1
+02)--Projection: CAST(aggregate_test_100.c1 AS Utf8View) AS c1
 03)----Sort: aggregate_test_100.c1 ASC NULLS LAST
 04)------TableScan: aggregate_test_100 projection=[c1]
 physical_plan
 01)DataSinkExec: sink=ParquetSink(file_groups=[])
-02)--SortExec: expr=[c1@0 ASC NULLS LAST], preserve_partitioning=[false]
-03)----DataSourceExec: file_groups={1 group: 
[[WORKSPACE_ROOT/testing/data/csv/aggregate_test_100.csv]]}, projection=[c1], 
file_type=csv, has_header=true
+02)--CoalescePartitionsExec

Review Comment:
   This is not related to this PR:
   
   I am confused why we add CAST() for logic plan will cause the physical plan 
change to add 
   
   02)--CoalescePartitionsExec
   03)----ProjectionExec: expr=[CAST(c1@0 AS Utf8View) as c1]
   04)------RepartitionExec: partitioning=RoundRobinBatch(8), input_partitions=1
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to