Description
First create some parquet tables in multiple subfolders:
create table dfs.tmp.`test/201501` as select employee_id, full_name from cp.`employee.json` limit 2; create table dfs.tmp.`test/201502` as select employee_id, full_name from cp.`employee.json` limit 2; create table dfs.tmp.`test/201601` as select employee_id, full_name from cp.`employee.json` limit 2; create table dfs.tmp.`test/201602` as select employee_id, full_name from cp.`employee.json` limit 2;
Running the following query gives the expected count:
select count(*) from dfs.tmp.`test/20160*`; +---------+ | EXPR$0 | +---------+ | 4 | +---------+
But once you create the metadata cache files, the query no longer returns the correct results:
refresh table metadata dfs.tmp.`test`; select count(*) from dfs.tmp.`test/20160*`; +---------+ | EXPR$0 | +---------+ | 2 | +---------+
Attachments
Issue Links
- relates to
-
DRILL-4484 NPE when querying empty directory
- Closed