[ 
https://issues.apache.org/jira/browse/BEAM-8039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17547961#comment-17547961
 ] 

Danny McCormick commented on BEAM-8039:
---------------------------------------

This issue has been migrated to https://github.com/apache/beam/issues/19617

> SUM(CASE WHEN xxx THEN 1 ELSE 0)
> --------------------------------
>
>                 Key: BEAM-8039
>                 URL: https://issues.apache.org/jira/browse/BEAM-8039
>             Project: Beam
>          Issue Type: Improvement
>          Components: dsl-sql-zetasql
>            Reporter: Rui Wang
>            Priority: P3
>
> 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.20.7#820007)

Reply via email to