LuciferYang commented on code in PR #49071:
URL: https://github.com/apache/spark/pull/49071#discussion_r1872506546
##########
sql/core/src/main/scala/org/apache/spark/sql/jdbc/PostgresDialect.scala:
##########
@@ -258,6 +260,23 @@ private object PostgresDialect extends JdbcDialect with
SQLConfHelper {
}
}
+ class PostgresSQLBuilder extends JDBCSQLBuilder {
+ override def visitBinaryArithmetic(name: String, l: String, r: String):
String = {
+ l + " " + name.replace('^', '#') + " " + r
+ }
+ }
+
+ override def compileExpression(expr: Expression): Option[String] = {
Review Comment:
Is it safe to only move this function from
https://github.com/apache/spark/pull/48210/files to the branch-3.5? WDYT
@MaxGekk and @yaooqinn
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]