[
https://issues.apache.org/jira/browse/BEAM-8039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rui Wang updated BEAM-8039:
---------------------------
Component/s: (was: dsl-sql)
dsl-sql-zetasql
> SUM(CASE WHEN xxx THEN 1 ELSE 0)
> --------------------------------
>
> Key: BEAM-8039
> URL: https://issues.apache.org/jira/browse/BEAM-8039
> Project: Beam
> Issue Type: Sub-task
> Components: dsl-sql-zetasql
> Reporter: Rui Wang
> Priority: Major
>
> java.lang.RuntimeException: Aggregate function only accepts Column Reference
> or CAST(Column Reference) as its input.
> I was able to rewrite SQL using WITH statement, and it seemed to work, but
> requires us rewriting a lot of queries and makes them pretty much unreadable.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)