Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.27.0
-
jdk8
macos
Description
I'm convertingĀ
String query = select "product_id" , sum("shelf_width") from "foodmart"."product" where "product_id" > 0 group by "product_id" having sum("shelf_width") > 1
with big query dialect, but results
SELECT product_id, SUM(shelf_width) FROM foodmart.product WHERE product_id > 0 GROUP BY product_id HAVING `EXPR$1` > 1
Maybe we need replace having clause aliases when stripping trivial aliases.
Attachments
Issue Links
- is related to
-
CALCITE-3936 RelToSqlConverter changes target of ambiguous HAVING clause with a Project on Filter on Aggregate
- Closed
- links to