gengliangwang commented on a change in pull request #25697: [SPARK-28997][SQL]
Add `spark.sql.dialect`
URL: https://github.com/apache/spark/pull/25697#discussion_r327569588
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -1589,12 +1589,22 @@ object SQLConf {
.booleanConf
.createWithDefault(false)
- val PREFER_INTEGRAL_DIVISION =
buildConf("spark.sql.function.preferIntegralDivision")
- .internal()
- .doc("When true, will perform integral division with the / operator " +
- "if both sides are integral types. This is for PostgreSQL test cases
only.")
- .booleanConf
- .createWithDefault(false)
+ object Dialect extends Enumeration {
+ val SPARK, POSTGRESQL = Value
+ }
+
+ val DIALECT =
+ buildConf("spark.sql.dialect")
+ .doc("The specific features of the SQL language to be adopted, which are
available when " +
Review comment:
Let's have a follow-up PR to add wiki page for the PostgreSQL dialect
behaviors.
----------------------------------------------------------------
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]