lgbo-ustc opened a new issue, #10379:
URL: https://github.com/apache/incubator-gluten/issues/10379
### Backend
CH (ClickHouse)
### Bug description
[Expected behavior] and [actual behavior].
If `a=3` and `a=4` are all false. `CoalesceAggregationUnion` will generate
invalid result.
```sql
select 'A' as a, count(b) as b from fact where a = 3 union all select 'B'
as a, count(b) as b from fact where a = 4;
+----+----+
| a | b |
+----+----+
+----+----+
```
the corrent answer should be
```sql
0: jdbc:hive2://localhost:10000> select 'A' as a, count(b) as b from fact
where a = 3 union all select 'B' as a, count(b) as b from fact where a = 4;
+----+----+
| a | b |
+----+----+
| A | 0 |
| B | 0 |
+----+----+
```
### Gluten version
_No response_
### Spark version
None
### Spark configurations
_No response_
### System information
_No response_
### Relevant logs
```bash
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]