You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 12:32:10 UTC

[GitHub] [beam] damccorm opened a new issue, #19617: SUM(CASE WHEN xxx THEN 1 ELSE 0)

damccorm opened a new issue, #19617:
URL: https://github.com/apache/beam/issues/19617

   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.
   
   
   Imported from Jira [BEAM-8039](https://issues.apache.org/jira/browse/BEAM-8039). Original Jira may contain additional context.
   Reported by: amaliujia.


-- 
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: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org