----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/34261/ -----------------------------------------------------------
Review request for hive, Ashutosh Chauhan and John Pullokkaran. Repository: hive-git Description ------- 1. When a fully qualified identifier (db.tablename) is specified in the from clause we seems to resolve it against CTE aliases. This is wrong if table doesn't exist in catalog then we should fail. 2. If fully qualified name is not used in the from clause then a) we should first resolve the identifier against CTE aliases b) if identifier is not found in the CTE list then try to resolve against catalog. 3) Views: in unparsetranslator we treat CTE name as catalog table; this is a bug. Diffs ----- ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g 4bb256d ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java 30c87ad ql/src/test/queries/clientpositive/cteViews.q PRE-CREATION ql/src/test/results/clientpositive/cteViews.q.out PRE-CREATION Diff: https://reviews.apache.org/r/34261/diff/ Testing ------- Thanks, pengcheng xiong