cloud-fan commented on a change in pull request #25605: 
[SPARK-28730][SPARK-28495][SQL][FOLLOW-UP] Revise the doc of option 
spark.sql.storeAssignmentPolicy
URL: https://github.com/apache/spark/pull/25605#discussion_r318388587
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
 ##########
 @@ -1643,12 +1643,16 @@ object SQLConf {
   val STORE_ASSIGNMENT_POLICY =
     buildConf("spark.sql.storeAssignmentPolicy")
       .doc("When inserting a value into a column with different data type, 
Spark will perform " +
-        "type coercion. Currently we support 3 policies for the type coercion 
rules: ansi, " +
-        "legacy and strict. With ansi policy, Spark performs the type coercion 
as per ANSI SQL. " +
-        "With legacy policy, Spark allows casting any value to any data type. 
" +
-        "The legacy policy is the only behavior in Spark 2.x and it is 
compatible with Hive. " +
+        "type coercion. Currently, we support 3 policies for the type coercion 
rules: ANSI, " +
+        "legacy and strict. With ANSI policy, Spark performs the type coercion 
as per ANSI SQL. " +
+        "In practice, it follows PostgreSQL. It disallows certain type 
unreasonable conversions " +
 
 Review comment:
   `type unreasonable conversions` -> `unreasonable type conversions`

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to