Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.5.0
-
None
Description
We are still working on a reproduction but when we have a query similar to this one:
with q1 as ( select a.field from `table` a where <some condition that causes the table to be pruned> group by a.field having ... ) , q2 as ( select a.field from `table` a where <some other pruning condition> group by a.field ) select * from ( select count(*) as cnt from q1 union all select count(*) as cnt from q2 );
The table is partitioned and both sub queries will force a parquet pruning on the table. Because we share the parquet metadata object in ParquetGroupScan, the second query end up being "over pruned" and we get wrong results.
The plan doesn't show the problem.
Attachments
1.
|
add unit test for DRILL-4449 | Resolved | Abdel Hakim Deneche |