[
https://issues.apache.org/jira/browse/ASTERIXDB-1629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yingyi Bu closed ASTERIXDB-1629.
--------------------------------
Resolution: Fixed
Fixed with a regression test.
> Union All with global aggregates fails
> --------------------------------------
>
> Key: ASTERIXDB-1629
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1629
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: Optimizer
> Reporter: Yingyi Bu
> Assignee: Yingyi Bu
>
> query:
> {noformat}
> SELECT COUNT(1) AS one FROM items
> UNION ALL
> SELECT COUNT(1) AS one FROM items;
> {noformat}
> A runtime error is thrown:
> {noformat}
> Invalid types for casting, required type generalized-record-type: closed {
> one: UNION(INT64, NULL, MISSING)
> }
> , input type null: closed {
> one: UNION(INT64, NULL, MISSING)
> }
> [IllegalStateException]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)