This is an automated email from the ASF dual-hosted git repository. krisztiankasa pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/hive.git.
from 25274bb Fix recursive call (#1763) add 9c6f8b7 HIVE-24274: Implement Query Text based MaterializedView rewrite (Krisztian Kasa, reviewed by Jesus Camacho Rodriguez) No new revisions were added by this update. Summary of changes: .../java/org/apache/hadoop/hive/conf/HiveConf.java | 3 + ql/src/java/org/apache/hadoop/hive/ql/Context.java | 26 +- .../AlterMaterializedViewRebuildAnalyzer.java | 4 +- .../org/apache/hadoop/hive/ql/metadata/Hive.java | 63 ++- .../ql/metadata/HiveMaterializedViewsRegistry.java | 80 +--- .../hive/ql/metadata/MaterializedViewsCache.java | 176 ++++++++ .../rules/views/HiveMaterializedViewUtils.java | 10 +- .../hadoop/hive/ql/parse/CalcitePlanner.java | 69 ++- .../hive/ql/parse/ScheduledQueryAnalyzer.java | 8 +- .../hadoop/hive/ql/parse/SemanticAnalyzer.java | 37 +- .../hadoop/hive/ql/parse/UnparseTranslator.java | 8 + .../ql/parse/UpdateDeleteSemanticAnalyzer.java | 1 + .../ql/metadata/TestMaterializedViewsCache.java | 485 +++++++++++++++++++++ ...rite.q => materialized_view_no_cbo_rewrite_1.q} | 3 +- .../materialized_view_no_supported_op_rewrite.q | 11 - .../queries/clientpositive/masking_mv_by_text.q | 37 ++ .../materialized_view_create_rewrite.q | 1 + ...ialized_view_create_rewrite_by_text_multi_db.q} | 2 +- .../materialized_view_create_rewrite_dummy.q | 1 + .../materialized_view_create_rewrite_multi_db.q | 1 + .../clientpositive/materialized_view_rewrite_1.q | 4 + .../materialized_view_rewrite_by_text.q | 26 ++ .../materialized_view_rewrite_by_text_2.q | 30 ++ .../materialized_view_rewrite_by_text_3.q | 22 + .../materialized_view_rewrite_by_text_4.q | 29 ++ .../materialized_view_rewrite_by_text_5.q | 33 ++ .../materialized_view_rewrite_window.q | 1 + ql/src/test/results/clientnegative/joinneg.q.out | 2 +- ...ut => materialized_view_no_cbo_rewrite_1.q.out} | 2 +- ...materialized_view_no_supported_op_rewrite.q.out | 22 - .../results/clientpositive/llap/avrotblsjoin.q.out | 1 + .../llap/correlationoptimizer8.q.out | 1 + .../llap/filter_join_breaktask2.q.out | 1 + .../llap/infer_bucket_sort_map_operators.q.out | 1 + .../clientpositive/llap/join_literals.q.out | 1 + .../clientpositive/llap/masking_mv_by_text.q.out | 266 +++++++++++ ...zed_view_create_rewrite_by_text_multi_db.q.out} | 0 .../llap/materialized_view_rewrite_1.q.out | 14 + .../llap/materialized_view_rewrite_by_text.q.out | 79 ++++ .../llap/materialized_view_rewrite_by_text_2.q.out | 104 +++++ .../llap/materialized_view_rewrite_by_text_3.q.out | 75 ++++ .../llap/materialized_view_rewrite_by_text_4.q.out | 102 +++++ .../llap/materialized_view_rewrite_by_text_5.q.out | 78 ++++ 43 files changed, 1781 insertions(+), 139 deletions(-) create mode 100644 ql/src/java/org/apache/hadoop/hive/ql/metadata/MaterializedViewsCache.java create mode 100644 ql/src/test/org/apache/hadoop/hive/ql/metadata/TestMaterializedViewsCache.java rename ql/src/test/queries/clientnegative/{materialized_view_no_cbo_rewrite.q => materialized_view_no_cbo_rewrite_1.q} (93%) delete mode 100644 ql/src/test/queries/clientnegative/materialized_view_no_supported_op_rewrite.q create mode 100644 ql/src/test/queries/clientpositive/masking_mv_by_text.q copy ql/src/test/queries/clientpositive/{materialized_view_create_rewrite_multi_db.q => materialized_view_create_rewrite_by_text_multi_db.q} (96%) create mode 100644 ql/src/test/queries/clientpositive/materialized_view_rewrite_by_text.q create mode 100644 ql/src/test/queries/clientpositive/materialized_view_rewrite_by_text_2.q create mode 100644 ql/src/test/queries/clientpositive/materialized_view_rewrite_by_text_3.q create mode 100644 ql/src/test/queries/clientpositive/materialized_view_rewrite_by_text_4.q create mode 100644 ql/src/test/queries/clientpositive/materialized_view_rewrite_by_text_5.q rename ql/src/test/results/clientnegative/{materialized_view_no_cbo_rewrite.q.out => materialized_view_no_cbo_rewrite_1.q.out} (95%) delete mode 100644 ql/src/test/results/clientnegative/materialized_view_no_supported_op_rewrite.q.out create mode 100644 ql/src/test/results/clientpositive/llap/masking_mv_by_text.q.out copy ql/src/test/results/clientpositive/llap/{materialized_view_create_rewrite_multi_db.q.out => materialized_view_create_rewrite_by_text_multi_db.q.out} (100%) create mode 100644 ql/src/test/results/clientpositive/llap/materialized_view_rewrite_by_text.q.out create mode 100644 ql/src/test/results/clientpositive/llap/materialized_view_rewrite_by_text_2.q.out create mode 100644 ql/src/test/results/clientpositive/llap/materialized_view_rewrite_by_text_3.q.out create mode 100644 ql/src/test/results/clientpositive/llap/materialized_view_rewrite_by_text_4.q.out create mode 100644 ql/src/test/results/clientpositive/llap/materialized_view_rewrite_by_text_5.q.out