Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
Impala 2.2
-
None
Description
Problem Statement
During ETL process or ad-hoc analysis, a temporary table is created using Create Table As Select (CTAS) and then read immediately by the subsequent query. However, the newly create temp table has no stats. Subsequent queries that read from the temp table can have an incorrect join order and join strategy.
Potential Fix
Given that row count is readily avaialble during CTAS and it's the most important fact in determining join order and join strategy, Impala should update the row count stats of the table created during CTAS.