cloud-fan commented on a change in pull request #24721: [SPARK-27856][SQL] do 
not forcibly add cast when inserting table
URL: https://github.com/apache/spark/pull/24721#discussion_r288421910
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
 ##########
 @@ -1777,6 +1777,12 @@ object SQLConf {
     .doc("When true, the upcast will be loose and allows string to atomic 
types.")
     .booleanConf
     .createWithDefault(false)
+
+  val LEGACY_INSERT_TABLE_FORCIBLE_CAST = 
buildConf("spark.sql.legacy.insertTable.forcibleCast")
+    .doc("When inserting data to a table, Spark will cast the data type of 
input query to " +
 
 Review comment:
   CTAS does not have this problem because the table is not created yet, so 
there is no type mismatch issue.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to