Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.31.0
Description
JDBC adapter should not generate FILTER (WHERE) in the Firebolt dialect, because Firebolt does not support filter clauses in aggregate functions. For example, COUNT(*) FILTER (WHERE a = 2) throws
Invalid operation error: SQL query not valid. SQL query: ========== SELECT COUNT FILTER (WHERE a = 2) FROM <table> ^=== ERROR HERE! ==========
The fix is for supportsAggregateFunctionFilter to return false. The dialect implementation should override the supportsAggregateFunctionFilter method it currently inherits from the base SqlDialect class.
Attachments
Issue Links
- is related to
-
CALCITE-4321 JDBC adapter omits FILTER (WHERE ...) expressions when generating SQL
- Closed
- links to