Yuanjian Li created SPARK-29807:
-----------------------------------
Summary: Rename "spark.sql.ansi.enabled" to
"spark.sql.dialect.spark.ansi.enabled"
Key: SPARK-29807
URL: https://issues.apache.org/jira/browse/SPARK-29807
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 3.0.0
Reporter: Yuanjian Li
The relation between "spark.sql.ansi.enabled" and "spark.sql.dialect" is
confusing, since the "PostgreSQL" dialect should contain the features of
"spark.sql.ansi.enabled".
To make things clearer, we can rename the "spark.sql.ansi.enabled" to
"spark.sql.dialect.spark.ansi.enabled", thus the option
"spark.sql.dialect.spark.ansi.enabled" is only for Spark dialect.
For the casting and arithmetic operations, runtime exceptions should be thrown
if
"spark.sql.dialect" is "spark" and "spark.sql.dialect.spark.ansi.enabled" is
true
orĀ "spark.sql.dialect" is PostgresSQL.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]