mirror of
https://github.com/apache/impala.git
synced 2026-01-08 12:02:54 -05:00
When the query option OPTIMIZE_PARTITION_KEY_SCANS is true, we may acquire the partition key values from the metadata and generate a union node containing constant expressions only. There is a bug in the planner when generating the union node as it skips evaluating the constant expressions for unmaterialized slots but union node expects an entry in the constant expression lists for each slot in the tuple descriptor even if the slot is not materialized. This change fixes the problem by inserting a dummy null values in the constant expression list for unmaterialized slots and lets the union node filter them out. A test is also added to verify the fix. Change-Id: I9ed49dca0101b96bd9b20e6d1e5b1d56f654e911 Reviewed-on: http://gerrit.cloudera.org:8080/2067 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Internal Jenkins
55 KiB
55 KiB