Description
Queries like select 1=1 from t group by 1=1 may return rows, based on OneNullRowInputFormat, even if the source table is empty. For now, add some basic detection of empty tables and turn this off by default (since we can't know whether a table is empty or not based on there being some files, without reading them).
Attachments
Attachments
Issue Links
- is cloned by
-
HIVE-15398 change metadata-only queries to still read the original table (in some cases?)
- Open
- relates to
-
HIVE-23712 metadata-only queries return incorrect results with empty acid partition
- Closed
-
HIVE-1003 optimize metadata only queries
- Closed