korbit-ai[bot] commented on code in PR #35420:
URL: https://github.com/apache/superset/pull/35420#discussion_r2395150212
##########
superset/sql/dialects/pinot.py:
##########
@@ -78,6 +78,12 @@ class Generator(MySQL.Generator):
exp.DataType.Type.UBIGINT: "UNSIGNED",
}
+ TRANSFORMS = {
+ **MySQL.Generator.TRANSFORMS,
+ }
+ # Remove DATE_TRUNC transformation - Pinot supports standard SQL
DATE_TRUNC
+ TRANSFORMS.pop(exp.DateTrunc, None)
Review Comment:
Understood. If this is the standard practice for sqlglot dialects, then it
makes sense to maintain consistency. Thank you for clarifying the project's
approach.
--
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]