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


##########
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

Review Comment:
   This is also expected,  for the sql way insert into, we will automatically 
cast the type to match the table schema, see details:
   
   The code here:
   
https://github.com/apache/datafusion/blob/2011f5252c7a738854f402c70a6636aaa408aaec/datafusion/sql/src/statement.rs#L1958
   
   
   



-- 
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