andrej-db commented on code in PR #49071:
URL: https://github.com/apache/spark/pull/49071#discussion_r1872960816
##########
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:
That PR (https://github.com/apache/spark/pull/48210) should be backported as
well. Maybe that one can be done first, and this one
(https://github.com/apache/spark/pull/49071) will then be 1:1 with my previous
(https://github.com/apache/spark/pull/48144).
We need the SqlBuilder and the compileExpression for this to work.
--
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]