mirror of
https://github.com/apache/impala.git
synced 2026-02-02 06:00:36 -05:00
When an expr rewrite occurs, we reanalyze the statement. Some state that is set in TableDef::analyze() wasn't being reset() first, causing a failure during reanalysis. This patch adds TableDef::reset(), which clears the TableDef state that is set during analyze(). Testing: - Added a regression test in AnalyzeDDLTest Change-Id: Ia67bb33736b5a843663b226cdd0fa5bd839cbea1 Reviewed-on: http://gerrit.cloudera.org:8080/7666 Reviewed-by: Thomas Tauber-Marshall <tmarshall@cloudera.com> Tested-by: Impala Public Jenkins