LuciferYang commented on code in PR #49071:
URL: https://github.com/apache/spark/pull/49071#discussion_r1872980343
##########
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:
https://github.com/apache/spark/pull/48210 is an optimization rather than a
bug fix. If the current pr can solve the issue, this changes is fine to me. Of
course, let's hear what others think.
--
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]