----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/1456/ -----------------------------------------------------------
(Updated 2011-08-19 20:20:22.217903) Review request for hive, Yongqiang He, John Sichi, and Ning Zhang. Changes ------- Moves a bunch of the logic to update index timestamps into the AlterIndex DDLTask rather than the DDLSemanticAnalyzer, so that the timestamp is guaranteed to be updated *after* the base table is touched. This change is reflected in index_auto_update.q, as now we see that the check for index staleness in the SELECT passes and we use the index in index_auto_update.q as desired. Summary ------- Chain a second set of tasks to the MoveTask for INSERT statements. This addresses bug HIVE-2354. https://issues.apache.org/jira/browse/HIVE-2354 Diffs (updated) ----- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java 815f15a ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java c031f40 ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java c17891c ql/src/java/org/apache/hadoop/hive/ql/parse/IndexUpdater.java PRE-CREATION ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java 6f311c6 ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java cb7a542 ql/src/java/org/apache/hadoop/hive/ql/plan/AlterIndexDesc.java f0dfd00 ql/src/test/queries/clientpositive/index_auto_update.q PRE-CREATION ql/src/test/results/clientpositive/index_auto_update.q.out PRE-CREATION ql/src/test/results/clientpositive/index_stale.q.out 24900a1 Diff: https://reviews.apache.org/r/1456/diff Testing ------- Added testcase "index_auto_update.q" Thanks, Syed