From 7d6ffbe4f0460f7789293f3922cf51ce0407ebda Mon Sep 17 00:00:00 2001 From: Syed Albiz Date: Fri, 6 May 2011 17:00:35 -0700 Subject: [PATCH 1/1] backport error messages patch to 0.7 diff --git jdbc/src/test/org/apache/hadoop/hive/jdbc/TestJdbcDriver.java jdbc/src/test/org/apache/hadoop/hive/jdbc/TestJdbcDriver.java index 30b9704..f8ca519 100644 --- jdbc/src/test/org/apache/hadoop/hive/jdbc/TestJdbcDriver.java +++ jdbc/src/test/org/apache/hadoop/hive/jdbc/TestJdbcDriver.java @@ -343,16 +343,16 @@ public class TestJdbcDriver extends TestCase { // sure // how to get around that. doTestErrorCase("SELECTT * FROM " + tableName, - "cannot recognize input 'SELECTT'", invalidSyntaxSQLState, 11); + "cannot recognize input near 'SELECTT' '*' 'FROM'", invalidSyntaxSQLState, 11); doTestErrorCase("SELECT * FROM some_table_that_does_not_exist", - "Table not found", "42S02", parseErrorCode); + "Table not found", "42000", parseErrorCode); doTestErrorCase("drop table some_table_that_does_not_exist", - "Table not found", "42S02", parseErrorCode); + "Table not found", "4200", parseErrorCode); doTestErrorCase("SELECT invalid_column FROM " + tableName, - "Invalid Table Alias or Column Reference", invalidSyntaxSQLState, + "Invalid table alias or column reference", invalidSyntaxSQLState, parseErrorCode); doTestErrorCase("SELECT invalid_function(key) FROM " + tableName, - "Invalid Function", invalidSyntaxSQLState, parseErrorCode); + "Invalid function", invalidSyntaxSQLState, parseErrorCode); // TODO: execute errors like this currently don't return good messages (i.e. // 'Table already exists'). This is because the Driver class calls diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/ErrorMsg.java ql/src/java/org/apache/hadoop/hive/ql/parse/ErrorMsg.java index 01eef69..6c65a5f 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/ErrorMsg.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/ErrorMsg.java @@ -40,78 +40,78 @@ public enum ErrorMsg { GENERIC_ERROR("Exception while processing"), INVALID_TABLE("Table not found", "42S02"), - INVALID_COLUMN("Invalid Column Reference"), - INVALID_INDEX("Invalid Index"), - INVALID_TABLE_OR_COLUMN("Invalid Table Alias or Column Reference"), - AMBIGUOUS_TABLE_OR_COLUMN("Ambiguous Table Alias or Column Reference"), + INVALID_COLUMN("Invalid column reference"), + INVALID_INDEX("Invalid index"), + INVALID_TABLE_OR_COLUMN("Invalid table alias or column reference"), + AMBIGUOUS_TABLE_OR_COLUMN("Ambiguous table alias or column reference"), INVALID_PARTITION("Partition not found"), - AMBIGUOUS_COLUMN("Ambiguous Column Reference"), - AMBIGUOUS_TABLE_ALIAS("Ambiguous Table Alias"), - INVALID_TABLE_ALIAS("Invalid Table Alias"), - NO_TABLE_ALIAS("No Table Alias"), - INVALID_FUNCTION("Invalid Function"), - INVALID_FUNCTION_SIGNATURE("Function Argument Type Mismatch"), - INVALID_OPERATOR_SIGNATURE("Operator Argument Type Mismatch"), - INVALID_ARGUMENT("Wrong Arguments"), - INVALID_ARGUMENT_LENGTH("Arguments Length Mismatch", "21000"), - INVALID_ARGUMENT_TYPE("Argument Type Mismatch"), - INVALID_JOIN_CONDITION_1("Both Left and Right Aliases Encountered in Join"), - INVALID_JOIN_CONDITION_2("Neither Left nor Right Aliases Encountered in Join"), - INVALID_JOIN_CONDITION_3("OR not supported in Join currently"), - INVALID_TRANSFORM("TRANSFORM with Other Select Columns not Supported"), - DUPLICATE_GROUPBY_KEY("Repeated Key in Group By"), - UNSUPPORTED_MULTIPLE_DISTINCTS("DISTINCT on Different Columns not Supported with skew in data"), - NO_SUBQUERY_ALIAS("No Alias For Subquery"), - NO_INSERT_INSUBQUERY("Cannot insert in a Subquery. Inserting to table "), - NON_KEY_EXPR_IN_GROUPBY("Expression Not In Group By Key"), - INVALID_XPATH("General . and [] Operators are Not Supported"), - INVALID_PATH("Invalid Path"), ILLEGAL_PATH("Path is not legal"), - INVALID_NUMERICAL_CONSTANT("Invalid Numerical Constant"), - INVALID_ARRAYINDEX_CONSTANT("Non Constant Expressions for Array Indexes not Supported"), - INVALID_MAPINDEX_CONSTANT("Non Constant Expression for Map Indexes not Supported"), - INVALID_MAPINDEX_TYPE("Map Key Type does not Match Index Expression Type"), - NON_COLLECTION_TYPE("[] not Valid on Non Collection Types"), + AMBIGUOUS_COLUMN("Ambiguous column reference"), + AMBIGUOUS_TABLE_ALIAS("Ambiguous table alias"), + INVALID_TABLE_ALIAS("Invalid table alias"), + NO_TABLE_ALIAS("No table alias"), + INVALID_FUNCTION("Invalid function"), + INVALID_FUNCTION_SIGNATURE("Function argument type mismatch"), + INVALID_OPERATOR_SIGNATURE("Operator argument type mismatch"), + INVALID_ARGUMENT("Wrong arguments"), + INVALID_ARGUMENT_LENGTH("Arguments length mismatch", "21000"), + INVALID_ARGUMENT_TYPE("Argument type mismatch"), + INVALID_JOIN_CONDITION_1("Both left and right aliases encountered in JOIN"), + INVALID_JOIN_CONDITION_2("Neither left nor right aliases encountered in JOIN"), + INVALID_JOIN_CONDITION_3("OR not supported in JOIN currently"), + INVALID_TRANSFORM("TRANSFORM with other SELECT columns not supported"), + DUPLICATE_GROUPBY_KEY("Repeated key in GROUP BY"), + UNSUPPORTED_MULTIPLE_DISTINCTS("DISTINCT on different columns not supported with skew in data"), + NO_SUBQUERY_ALIAS("No alias for subquery"), + NO_INSERT_INSUBQUERY("Cannot insert in a subquery. Inserting to table "), + NON_KEY_EXPR_IN_GROUPBY("Expression not in GROUP BY key"), + INVALID_XPATH("General . and [] operators are not supported"), + INVALID_PATH("Invalid path"), ILLEGAL_PATH("Path is not legal"), + INVALID_NUMERICAL_CONSTANT("Invalid numerical constant"), + INVALID_ARRAYINDEX_CONSTANT("Non-constant expressions for array indexes not supported"), + INVALID_MAPINDEX_CONSTANT("Non-constant expression for map indexes not supported"), + INVALID_MAPINDEX_TYPE("MAP key type does not match index expression type"), + NON_COLLECTION_TYPE("[] not valid on non-collection types"), SELECT_DISTINCT_WITH_GROUPBY("SELECT DISTINCT and GROUP BY can not be in the same query"), COLUMN_REPEATED_IN_PARTITIONING_COLS("Column repeated in partitioning columns"), DUPLICATE_COLUMN_NAMES("Duplicate column name:"), INVALID_BUCKET_NUMBER("Bucket number should be bigger than zero"), - COLUMN_REPEATED_IN_CLUSTER_SORT("Same column cannot appear in cluster and sort by"), - SAMPLE_RESTRICTION("Cannot Sample on More Than Two Columns"), - SAMPLE_COLUMN_NOT_FOUND("Sample Column Not Found"), - NO_PARTITION_PREDICATE("No Partition Predicate Found"), - INVALID_DOT(". operator is only supported on struct or list of struct types"), + COLUMN_REPEATED_IN_CLUSTER_SORT("Same column cannot appear in CLUSTER BY and SORT BY"), + SAMPLE_RESTRICTION("Cannot SAMPLE on more than two columns"), + SAMPLE_COLUMN_NOT_FOUND("SAMPLE column not found"), + NO_PARTITION_PREDICATE("No partition predicate found"), + INVALID_DOT(". Operator is only supported on struct or list of struct types"), INVALID_TBL_DDL_SERDE("Either list of columns or a custom serializer should be specified"), TARGET_TABLE_COLUMN_MISMATCH( "Cannot insert into target table because column number/types are different"), - TABLE_ALIAS_NOT_ALLOWED("Table Alias not Allowed in Sampling Clause"), - CLUSTERBY_DISTRIBUTEBY_CONFLICT("Cannot have both Cluster By and Distribute By Clauses"), - ORDERBY_DISTRIBUTEBY_CONFLICT("Cannot have both Order By and Distribute By Clauses"), - CLUSTERBY_SORTBY_CONFLICT("Cannot have both Cluster By and Sort By Clauses"), - ORDERBY_SORTBY_CONFLICT("Cannot have both Order By and Sort By Clauses"), - CLUSTERBY_ORDERBY_CONFLICT("Cannot have both Cluster By and Order By Clauses"), - NO_LIMIT_WITH_ORDERBY("In strict mode, limit must be specified if ORDER BY is present"), + TABLE_ALIAS_NOT_ALLOWED("Table alias not allowed in sampling clause"), + CLUSTERBY_DISTRIBUTEBY_CONFLICT("Cannot have both CLUSTER BY and DISTRIBUTE BY clauses"), + ORDERBY_DISTRIBUTEBY_CONFLICT("Cannot have both ORDER BY and DISTRIBUTE BY clauses"), + CLUSTERBY_SORTBY_CONFLICT("Cannot have both CLUSTER BY and SORT BY clauses"), + ORDERBY_SORTBY_CONFLICT("Cannot have both ORDER BY and SORT BY clauses"), + CLUSTERBY_ORDERBY_CONFLICT("Cannot have both CLUSTER BY and ORDER BY clauses"), + NO_LIMIT_WITH_ORDERBY("In strict mode, if ORDER BY is specified, LIMIT must also be specified"), NO_CARTESIAN_PRODUCT("In strict mode, cartesian product is not allowed. " + "If you really want to perform the operation, set hive.mapred.mode=nonstrict"), - UNION_NOTIN_SUBQ("Top level Union is not supported currently; use a subquery for the union"), - INVALID_INPUT_FORMAT_TYPE("Input Format must implement InputFormat"), + UNION_NOTIN_SUBQ("Top level UNION is not supported currently; use a subquery for the UNION"), + INVALID_INPUT_FORMAT_TYPE("Input format must implement InputFormat"), INVALID_OUTPUT_FORMAT_TYPE("Output Format must implement HiveOutputFormat, " + "otherwise it should be either IgnoreKeyTextOutputFormat or SequenceFileOutputFormat"), NO_VALID_PARTN("The query does not reference any valid partition. " + "To run this query, set hive.mapred.mode=nonstrict"), - NO_OUTER_MAPJOIN("Map Join cannot be performed with Outer join"), - INVALID_MAPJOIN_HINT("neither table specified as map-table"), - INVALID_MAPJOIN_TABLE("result of a union cannot be a map table"), - NON_BUCKETED_TABLE("Sampling Expression Needed for Non-Bucketed Table"), + NO_OUTER_MAPJOIN("MAPJOIN cannot be performed with OUTER JOIN"), + INVALID_MAPJOIN_HINT("Neither table specified as map-table"), + INVALID_MAPJOIN_TABLE("Result of a union cannot be a map table"), + NON_BUCKETED_TABLE("Sampling expression needed for non-bucketed table"), BUCKETED_NUMBERATOR_BIGGER_DENOMINATOR("Numberator should not be bigger than " - + "denaminator in sample clause for Table"), - NEED_PARTITION_ERROR("need to specify partition columns because the destination " + + "denaminator in sample clause for table"), + NEED_PARTITION_ERROR("Need to specify partition columns because the destination " + "table is partitioned."), CTAS_CTLT_COEXISTENCE("Create table command does not allow LIKE and AS-SELECT in " + "the same command"), LINES_TERMINATED_BY_NON_NEWLINE("LINES TERMINATED BY only supports newline '\\n' right now"), - CTAS_COLLST_COEXISTENCE("Create table as select command cannot specify the list of columns " + CTAS_COLLST_COEXISTENCE("CREATE TABLE AS SELECT command cannot specify the list of columns " + "for the target table."), - CTLT_COLLST_COEXISTENCE("Create table like command cannot specify the list of columns for " + CTLT_COLLST_COEXISTENCE("CREATE TABLE LIKE command cannot specify the list of columns for " + "the target table."), INVALID_SELECT_SCHEMA("Cannot derive schema from the select-clause."), CTAS_PARCOL_COEXISTENCE("CREATE-TABLE-AS-SELECT does not support partitioning in the target " @@ -131,8 +131,8 @@ public enum ErrorMsg { UDTF_LATERAL_VIEW("UDTF's cannot be in a select expression when there is a lateral view"), UDTF_ALIAS_MISMATCH("The number of aliases supplied in the AS clause does not match the " + "number of columns output by the UDTF"), - LATERAL_VIEW_WITH_JOIN("Join with a lateral view is not supported"), - LATERAL_VIEW_INVALID_CHILD("Lateral view AST with invalid child"), + LATERAL_VIEW_WITH_JOIN("JOIN with a LATERAL VIEW is not supported"), + LATERAL_VIEW_INVALID_CHILD("LATERAL VIEW AST with invalid child"), OUTPUT_SPECIFIED_MULTIPLE_TIMES("The same output cannot be present multiple times: "), INVALID_AS("AS clause has an invalid number of aliases"), VIEW_COL_MISMATCH("The number of columns produced by the SELECT clause does not match the " @@ -151,9 +151,9 @@ public enum ErrorMsg { + "STRING instead."), CREATE_NON_NATIVE_AS("CREATE TABLE AS SELECT cannot be used for a non-native table"), LOAD_INTO_NON_NATIVE("A non-native table cannot be used as target for LOAD"), - LOCKMGR_NOT_SPECIFIED("lock manager not specified correctly, set hive.lock.manager"), - LOCKMGR_NOT_INITIALIZED("lock manager could not be initialized, check hive.lock.manager "), - LOCK_CANNOT_BE_ACQUIRED("locks on the underlying objects cannot be acquired. retry after some time"), + LOCKMGR_NOT_SPECIFIED("Lock manager not specified correctly, set hive.lock.manager"), + LOCKMGR_NOT_INITIALIZED("Lock manager could not be initialized, check hive.lock.manager "), + LOCK_CANNOT_BE_ACQUIRED("Locks on the underlying objects cannot be acquired. retry after some time"), ZOOKEEPER_CLIENT_COULD_NOT_BE_INITIALIZED("Check hive.zookeeper.quorum and hive.zookeeper.client.port"), OVERWRITE_ARCHIVED_PART("Cannot overwrite an archived partition. " + "Unarchive before running this command."), @@ -318,7 +318,7 @@ public enum ErrorMsg { } private static void renderPosition(StringBuilder sb, ASTNode tree) { - sb.append("line "); + sb.append("Line "); sb.append(getLine(tree)); sb.append(":"); sb.append(getCharPositionInLine(tree)); diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/ParseDriver.java ql/src/java/org/apache/hadoop/hive/ql/parse/ParseDriver.java index d738c48..26fc6d0 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/ParseDriver.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/ParseDriver.java @@ -25,6 +25,7 @@ import java.util.HashMap; import org.antlr.runtime.ANTLRStringStream; import org.antlr.runtime.BitSet; import org.antlr.runtime.CharStream; +import org.antlr.runtime.FailedPredicateException; import org.antlr.runtime.IntStream; import org.antlr.runtime.MismatchedTokenException; import org.antlr.runtime.NoViableAltException; @@ -190,6 +191,7 @@ public class ParseDriver { xlateMap.put("TILDE", "~"); xlateMap.put("BITWISEOR", "|"); xlateMap.put("BITWISEXOR", "^"); + xlateMap.put("CharSetLiteral", "\\'"); } public static Collection getKeywords() { @@ -208,7 +210,7 @@ public class ParseDriver { /** * ANTLRNoCaseStringStream. - * + * */ //This class provides and implementation for a case insensitive token checker //for the lexical analysis part of antlr. By converting the token stream into @@ -227,6 +229,7 @@ public class ParseDriver { super(input); } + @Override public int LA(int i) { int returnChar = super.LA(i); @@ -258,12 +261,14 @@ public class ParseDriver { errors = new ArrayList(); } + @Override public void displayRecognitionError(String[] tokenNames, RecognitionException e) { errors.add(new ParseError(this, e, tokenNames)); } + @Override public String getErrorMessage(RecognitionException e, String[] tokenNames) { String msg = null; @@ -301,27 +306,45 @@ public class ParseDriver { errors = new ArrayList(); } + @Override protected void mismatch(IntStream input, int ttype, BitSet follow) throws RecognitionException { throw new MismatchedTokenException(ttype, input); } + @Override public void recoverFromMismatchedSet(IntStream input, RecognitionException re, BitSet follow) throws RecognitionException { throw re; } + @Override public void displayRecognitionError(String[] tokenNames, RecognitionException e) { errors.add(new ParseError(this, e, tokenNames)); } + @Override + public String getErrorHeader(RecognitionException e) { + String header = null; + if (e.charPositionInLine < 0 && input.LT(-1) != null) { + Token t = input.LT(-1); + header = "line " + t.getLine() + ":" + t.getCharPositionInLine(); + } else { + header = super.getErrorHeader(e); + } + + return header; + } + + + @Override public String getErrorMessage(RecognitionException e, String[] tokenNames) { String msg = null; - // Transalate the token names to something that the user can understand + // Translate the token names to something that the user can understand String[] xlateNames = new String[tokenNames.length]; for (int i = 0; i < tokenNames.length; ++i) { xlateNames[i] = ParseDriver.xlate(tokenNames[i]); @@ -334,7 +357,16 @@ public class ParseDriver { // "decision=<<"+nvae.grammarDecisionDescription+">>" // and "(decision="+nvae.decisionNumber+") and // "state "+nvae.stateNumber - msg = "cannot recognize input " + getTokenErrorDisplay(e.token); + msg = "cannot recognize input near " + + getTokenErrorDisplay(e.token) + + (input.LT(2) != null ? " " + getTokenErrorDisplay(input.LT(2)) : "") + + (input.LT(3) != null ? " " + getTokenErrorDisplay(input.LT(3)) : ""); + } else if (e instanceof MismatchedTokenException) { + MismatchedTokenException mte = (MismatchedTokenException) e; + msg = super.getErrorMessage(e, xlateNames) + (input.LT(-1) == null ? "":" near '" + input.LT(-1).getText()) + "'"; + } else if (e instanceof FailedPredicateException) { + FailedPredicateException fpe = (FailedPredicateException) e; + msg = "Failed to recognize predicate '" + fpe.token.getText() + "'. Failed rule: '" + fpe.ruleName + "'"; } else { msg = super.getErrorMessage(e, xlateNames); } @@ -360,7 +392,7 @@ public class ParseDriver { /** * Creates an ASTNode for the given token. The ASTNode is a wrapper around * antlr's CommonTree class that implements the Node interface. - * + * * @param payload * The token. * @return Object (which is actually an ASTNode) for the token. @@ -378,15 +410,15 @@ public class ParseDriver { /** * Parses a command, optionally assigning the parser's token stream to the * given context. - * + * * @param command * command to parse - * + * * @param ctx * context with which to associate this parser's token stream, or * null if either no context is available or the context already has * an existing stream - * + * * @return parsed AST */ public ASTNode parse(String command, Context ctx) throws ParseException { diff --git ql/src/test/queries/clientnegative/select_charliteral.q ql/src/test/queries/clientnegative/select_charliteral.q new file mode 100644 index 0000000..1e4c70e --- /dev/null +++ ql/src/test/queries/clientnegative/select_charliteral.q @@ -0,0 +1,3 @@ +-- Check that charSetLiteral syntax conformance +-- Check that a sane error message with correct line/column numbers is emitted with helpful context tokens. +select _c17, count(1) from tmp_tl_foo group by _c17 diff --git ql/src/test/results/clientnegative/ambiguous_col.q.out ql/src/test/results/clientnegative/ambiguous_col.q.out index 9838e27..05e525f 100644 --- ql/src/test/results/clientnegative/ambiguous_col.q.out +++ ql/src/test/results/clientnegative/ambiguous_col.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: Ambiguous Column Reference key +FAILED: Error in semantic analysis: Ambiguous column reference key diff --git ql/src/test/results/clientnegative/archive1.q.out ql/src/test/results/clientnegative/archive1.q.out index 0927686..6593290 100644 --- ql/src/test/results/clientnegative/archive1.q.out +++ ql/src/test/results/clientnegative/archive1.q.out @@ -25,15 +25,5 @@ PREHOOK: query: ALTER TABLE srcpart_archived ARCHIVE PARTITION (ds='2008-04-08', PREHOOK: type: ALTERTABLE_ARCHIVE PREHOOK: Input: default@srcpart_archived PREHOOK: Output: default@srcpart_archived@ds=2008-04-08/hr=12 -POSTHOOK: query: ALTER TABLE srcpart_archived ARCHIVE PARTITION (ds='2008-04-08', hr='12') -POSTHOOK: type: ALTERTABLE_ARCHIVE -POSTHOOK: Input: default@srcpart_archived -POSTHOOK: Output: default@srcpart_archived@ds=2008-04-08/hr=12 -POSTHOOK: Lineage: srcpart_archived PARTITION(ds=2008-04-08,hr=12).key SIMPLE [(srcpart)srcpart.FieldSchema(name:key, type:string, comment:default), ] -POSTHOOK: Lineage: srcpart_archived PARTITION(ds=2008-04-08,hr=12).value SIMPLE [(srcpart)srcpart.FieldSchema(name:value, type:string, comment:default), ] -PREHOOK: query: ALTER TABLE srcpart_archived ARCHIVE PARTITION (ds='2008-04-08', hr='12') -PREHOOK: type: ALTERTABLE_ARCHIVE -PREHOOK: Input: default@srcpart_archived -PREHOOK: Output: default@srcpart_archived@ds=2008-04-08/hr=12 -FAILED: Error in metadata: Specified partition is already archived +FAILED: Error in metadata: Error while creating HAR FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask diff --git ql/src/test/results/clientnegative/bad_sample_clause.q.out ql/src/test/results/clientnegative/bad_sample_clause.q.out index 9ddb18f..15b8fef 100644 --- ql/src/test/results/clientnegative/bad_sample_clause.q.out +++ ql/src/test/results/clientnegative/bad_sample_clause.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE dest1(key INT, value STRING, dt STRING, hr STRING) STORED AS TEXTFILE POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@dest1 -FAILED: Error in semantic analysis: Sampling Expression Needed for Non-Bucketed Table srcpart +FAILED: Error in semantic analysis: Sampling expression needed for non-bucketed table srcpart diff --git ql/src/test/results/clientnegative/clusterbydistributeby.q.out ql/src/test/results/clientnegative/clusterbydistributeby.q.out index 9151ff2..4c1ebfb 100644 --- ql/src/test/results/clientnegative/clusterbydistributeby.q.out +++ ql/src/test/results/clientnegative/clusterbydistributeby.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE dest1(key INT, ten INT, one INT, value STRING) STORED AS TEXTFILE POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@dest1 -FAILED: Error in semantic analysis: line 8:14 Cannot have both Cluster By and Distribute By Clauses tkey +FAILED: Error in semantic analysis: Line 8:14 Cannot have both CLUSTER BY and DISTRIBUTE BY clauses tkey diff --git ql/src/test/results/clientnegative/clusterbyorderby.q.out ql/src/test/results/clientnegative/clusterbyorderby.q.out index 5a50355..0b30640 100644 --- ql/src/test/results/clientnegative/clusterbyorderby.q.out +++ ql/src/test/results/clientnegative/clusterbyorderby.q.out @@ -1,2 +1,2 @@ -FAILED: Parse Error: line 5:0 mismatched input 'ORDER' expecting EOF +FAILED: Parse Error: line 5:0 mismatched input 'ORDER' expecting EOF near 'tkey' diff --git ql/src/test/results/clientnegative/clusterbysortby.q.out ql/src/test/results/clientnegative/clusterbysortby.q.out index d79c319..f76d4a7 100644 --- ql/src/test/results/clientnegative/clusterbysortby.q.out +++ ql/src/test/results/clientnegative/clusterbysortby.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE dest1(key INT, ten INT, one INT, value STRING) STORED AS TEXTFILE POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@dest1 -FAILED: Error in semantic analysis: line 8:8 Cannot have both Cluster By and Sort By Clauses one +FAILED: Error in semantic analysis: Line 8:8 Cannot have both CLUSTER BY and SORT BY clauses one diff --git ql/src/test/results/clientnegative/clustern3.q.out ql/src/test/results/clientnegative/clustern3.q.out index 37c103f..da71016 100644 --- ql/src/test/results/clientnegative/clustern3.q.out +++ ql/src/test/results/clientnegative/clustern3.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:52 Invalid Column Reference key +FAILED: Error in semantic analysis: Line 2:52 Invalid column reference key diff --git ql/src/test/results/clientnegative/clustern4.q.out ql/src/test/results/clientnegative/clustern4.q.out index fcfa605..1519e48 100644 --- ql/src/test/results/clientnegative/clustern4.q.out +++ ql/src/test/results/clientnegative/clustern4.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:50 Invalid Table Alias or Column Reference key +FAILED: Error in semantic analysis: Line 2:50 Invalid table alias or column reference key diff --git ql/src/test/results/clientnegative/column_rename3.q.out ql/src/test/results/clientnegative/column_rename3.q.out index bdca52e..e9f7515 100644 --- ql/src/test/results/clientnegative/column_rename3.q.out +++ ql/src/test/results/clientnegative/column_rename3.q.out @@ -1,2 +1,2 @@ -FAILED: Parse Error: line 0:-1 cannot recognize input '' in column type +FAILED: Parse Error: line 1:27 cannot recognize input near '' '' '' in column type diff --git ql/src/test/results/clientnegative/create_view_failure3.q.out ql/src/test/results/clientnegative/create_view_failure3.q.out index 7f3a710..70e365a 100644 --- ql/src/test/results/clientnegative/create_view_failure3.q.out +++ ql/src/test/results/clientnegative/create_view_failure3.q.out @@ -2,4 +2,4 @@ PREHOOK: query: DROP VIEW xxx13 PREHOOK: type: DROPVIEW POSTHOOK: query: DROP VIEW xxx13 POSTHOOK: type: DROPVIEW -FAILED: Error in semantic analysis: line 5:16 The number of columns produced by the SELECT clause does not match the number of column names specified by CREATE VIEW key +FAILED: Error in semantic analysis: Line 5:16 The number of columns produced by the SELECT clause does not match the number of column names specified by CREATE VIEW key diff --git ql/src/test/results/clientnegative/drop_function_failure.q.out ql/src/test/results/clientnegative/drop_function_failure.q.out index 0629c37..d7ebf64 100644 --- ql/src/test/results/clientnegative/drop_function_failure.q.out +++ ql/src/test/results/clientnegative/drop_function_failure.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: Invalid Function UnknownFunction +FAILED: Error in semantic analysis: Invalid function UnknownFunction diff --git ql/src/test/results/clientnegative/drop_index_failure.q.out ql/src/test/results/clientnegative/drop_index_failure.q.out index c91afac..cdbfcbe 100644 --- ql/src/test/results/clientnegative/drop_index_failure.q.out +++ ql/src/test/results/clientnegative/drop_index_failure.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: Invalid Index UnknownIndex +FAILED: Error in semantic analysis: Invalid index UnknownIndex diff --git ql/src/test/results/clientnegative/drop_partition_failure.q.out ql/src/test/results/clientnegative/drop_partition_failure.q.out index 97b4839..1a0ac10 100644 --- ql/src/test/results/clientnegative/drop_partition_failure.q.out +++ ql/src/test/results/clientnegative/drop_partition_failure.q.out @@ -31,4 +31,4 @@ POSTHOOK: type: SHOWPARTITIONS b=1/c=1 b=1/c=2 b=2/c=2 -FAILED: Error in semantic analysis: line 3:31 Partition not found '3' +FAILED: Error in semantic analysis: Line 3:31 Partition not found '3' diff --git ql/src/test/results/clientnegative/dyn_part2.q.out ql/src/test/results/clientnegative/dyn_part2.q.out index 636096d..cc0cd3c 100644 --- ql/src/test/results/clientnegative/dyn_part2.q.out +++ ql/src/test/results/clientnegative/dyn_part2.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: create table nzhang_part1 (key string, value string) partitioned by (ds string, hr string) POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@nzhang_part1 -FAILED: Error in semantic analysis: line 3:23 Cannot insert into target table because column number/types are different hr: Table insclause-0 has 3 columns, but query has 2 columns. +FAILED: Error in semantic analysis: Line 3:23 Cannot insert into target table because column number/types are different hr: Table insclause-0 has 3 columns, but query has 2 columns. diff --git ql/src/test/results/clientnegative/fileformat_void_input.q.out ql/src/test/results/clientnegative/fileformat_void_input.q.out index ce62d79..5a7a05a 100644 --- ql/src/test/results/clientnegative/fileformat_void_input.q.out +++ ql/src/test/results/clientnegative/fileformat_void_input.q.out @@ -19,4 +19,4 @@ POSTHOOK: Input: default@src POSTHOOK: Output: default@dest1 POSTHOOK: Lineage: dest1.key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: dest1.value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] -FAILED: Error in semantic analysis: line 3:20 Input Format must implement InputFormat dest1 +FAILED: Error in semantic analysis: Line 3:20 Input format must implement InputFormat dest1 diff --git ql/src/test/results/clientnegative/groupby2_map_skew_multi_distinct.q.out ql/src/test/results/clientnegative/groupby2_map_skew_multi_distinct.q.out index 494db44..216aa47 100644 --- ql/src/test/results/clientnegative/groupby2_map_skew_multi_distinct.q.out +++ ql/src/test/results/clientnegative/groupby2_map_skew_multi_distinct.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE dest1(key STRING, c1 INT, c2 STRING, c3 INT, c4 INT) STORED AS TEXTFILE POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@dest1 -FAILED: Error in semantic analysis: DISTINCT on Different Columns not Supported with skew in data +FAILED: Error in semantic analysis: DISTINCT on different columns not supported with skew in data diff --git ql/src/test/results/clientnegative/groupby2_multi_distinct.q.out ql/src/test/results/clientnegative/groupby2_multi_distinct.q.out index e0a1dee..46914cf 100644 --- ql/src/test/results/clientnegative/groupby2_multi_distinct.q.out +++ ql/src/test/results/clientnegative/groupby2_multi_distinct.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE dest_g2(key STRING, c1 INT, c2 STRING, c3 INT, c4 INT) STORED AS TEXTFILE POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@dest_g2 -FAILED: Error in semantic analysis: DISTINCT on Different Columns not Supported with skew in data +FAILED: Error in semantic analysis: DISTINCT on different columns not supported with skew in data diff --git ql/src/test/results/clientnegative/groupby3_map_skew_multi_distinct.q.out ql/src/test/results/clientnegative/groupby3_map_skew_multi_distinct.q.out index 5702d4f..81a4633 100644 --- ql/src/test/results/clientnegative/groupby3_map_skew_multi_distinct.q.out +++ ql/src/test/results/clientnegative/groupby3_map_skew_multi_distinct.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE dest1(c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE) STORED AS TEXTFILE POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@dest1 -FAILED: Error in semantic analysis: DISTINCT on Different Columns not Supported with skew in data +FAILED: Error in semantic analysis: DISTINCT on different columns not supported with skew in data diff --git ql/src/test/results/clientnegative/groupby3_multi_distinct.q.out ql/src/test/results/clientnegative/groupby3_multi_distinct.q.out index 5702d4f..81a4633 100644 --- ql/src/test/results/clientnegative/groupby3_multi_distinct.q.out +++ ql/src/test/results/clientnegative/groupby3_multi_distinct.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE dest1(c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE) STORED AS TEXTFILE POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@dest1 -FAILED: Error in semantic analysis: DISTINCT on Different Columns not Supported with skew in data +FAILED: Error in semantic analysis: DISTINCT on different columns not supported with skew in data diff --git ql/src/test/results/clientnegative/groupby_key.q.out ql/src/test/results/clientnegative/groupby_key.q.out index 8c30cc4..c6218a4 100644 --- ql/src/test/results/clientnegative/groupby_key.q.out +++ ql/src/test/results/clientnegative/groupby_key.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:14 Expression Not In Group By Key value +FAILED: Error in semantic analysis: Line 1:14 Expression not in GROUP BY key value diff --git ql/src/test/results/clientnegative/input1.q.out ql/src/test/results/clientnegative/input1.q.out index f4e830e..73f1657 100644 --- ql/src/test/results/clientnegative/input1.q.out +++ ql/src/test/results/clientnegative/input1.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:7 Invalid Table Alias a +FAILED: Error in semantic analysis: Line 1:7 Invalid table alias a diff --git ql/src/test/results/clientnegative/input2.q.out ql/src/test/results/clientnegative/input2.q.out index a8ba9c5..0c460a6 100644 --- ql/src/test/results/clientnegative/input2.q.out +++ ql/src/test/results/clientnegative/input2.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:7 Invalid Table Alias or Column Reference a +FAILED: Error in semantic analysis: Line 1:7 Invalid table alias or column reference a diff --git ql/src/test/results/clientnegative/input_part0_neg.q.out ql/src/test/results/clientnegative/input_part0_neg.q.out index 566b5bf..2c9c0c5 100644 --- ql/src/test/results/clientnegative/input_part0_neg.q.out +++ ql/src/test/results/clientnegative/input_part0_neg.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: No Partition Predicate Found for Alias "x" Table "srcpart" +FAILED: Error in semantic analysis: No partition predicate found for Alias "x" Table "srcpart" diff --git ql/src/test/results/clientnegative/invalid_create_tbl2.q.out ql/src/test/results/clientnegative/invalid_create_tbl2.q.out index ae81881..ae28a58 100644 --- ql/src/test/results/clientnegative/invalid_create_tbl2.q.out +++ ql/src/test/results/clientnegative/invalid_create_tbl2.q.out @@ -1,2 +1,2 @@ -FAILED: Parse Error: line 1:7 rule kwRole failed predicate: {input.LT(1).getText().equalsIgnoreCase("role")}? in create role +FAILED: Parse Error: line 1:7 Failed to recognize predicate 'tabl'. Failed rule: 'kwRole' in create role diff --git ql/src/test/results/clientnegative/invalid_select_expression.q.out ql/src/test/results/clientnegative/invalid_select_expression.q.out index 69ec9ef..51ecb3d 100644 --- ql/src/test/results/clientnegative/invalid_select_expression.q.out +++ ql/src/test/results/clientnegative/invalid_select_expression.q.out @@ -1,2 +1,2 @@ -FAILED: Parse Error: line 1:32 cannot recognize input '.' in expression specification +FAILED: Parse Error: line 1:32 cannot recognize input near '.' 'foo' '' in expression specification diff --git ql/src/test/results/clientnegative/invalid_tbl_name.q.out ql/src/test/results/clientnegative/invalid_tbl_name.q.out index aff52fa..6556749 100644 --- ql/src/test/results/clientnegative/invalid_tbl_name.q.out +++ ql/src/test/results/clientnegative/invalid_tbl_name.q.out @@ -1,2 +1,2 @@ -FAILED: Parse Error: line 1:20 cannot recognize input '-' in create table statement +FAILED: Parse Error: line 1:20 cannot recognize input near '-' 'name' '(' in create table statement diff --git ql/src/test/results/clientnegative/invalidate_view1.q.out ql/src/test/results/clientnegative/invalidate_view1.q.out index be64a4d..7a687ca 100644 --- ql/src/test/results/clientnegative/invalidate_view1.q.out +++ ql/src/test/results/clientnegative/invalidate_view1.q.out @@ -19,18 +19,18 @@ POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@xxx10 PREHOOK: query: CREATE VIEW xxx9 AS SELECT * FROM xxx10 PREHOOK: type: CREATEVIEW -PREHOOK: Output: file:/tmp/njain/hive_2010-08-16_23-08-55_315_6053999460183300682/-mr-10000 +PREHOOK: Output: file:/var/folders/5V/5V4Zq77qGD4aSK9m8V3frVsFdRU/-Tmp-/salbiz/hive_2011-05-06_18-21-57_294_3082316283829832124/-mr-10000 POSTHOOK: query: CREATE VIEW xxx9 AS SELECT * FROM xxx10 POSTHOOK: type: CREATEVIEW -POSTHOOK: Output: file:/tmp/njain/hive_2010-08-16_23-08-55_315_6053999460183300682/-mr-10000 POSTHOOK: Output: default@xxx9 +POSTHOOK: Output: file:/var/folders/5V/5V4Zq77qGD4aSK9m8V3frVsFdRU/-Tmp-/salbiz/hive_2011-05-06_18-21-57_294_3082316283829832124/-mr-10000 PREHOOK: query: CREATE VIEW xxx8 AS SELECT * FROM xxx9 xxx PREHOOK: type: CREATEVIEW -PREHOOK: Output: file:/tmp/njain/hive_2010-08-16_23-08-55_367_8780672183290065174/-mr-10000 +PREHOOK: Output: file:/var/folders/5V/5V4Zq77qGD4aSK9m8V3frVsFdRU/-Tmp-/salbiz/hive_2011-05-06_18-21-57_322_9196564361024798339/-mr-10000 POSTHOOK: query: CREATE VIEW xxx8 AS SELECT * FROM xxx9 xxx POSTHOOK: type: CREATEVIEW -POSTHOOK: Output: file:/tmp/njain/hive_2010-08-16_23-08-55_367_8780672183290065174/-mr-10000 POSTHOOK: Output: default@xxx8 +POSTHOOK: Output: file:/var/folders/5V/5V4Zq77qGD4aSK9m8V3frVsFdRU/-Tmp-/salbiz/hive_2011-05-06_18-21-57_322_9196564361024798339/-mr-10000 PREHOOK: query: ALTER TABLE xxx10 REPLACE COLUMNS (key int) PREHOOK: type: ALTERTABLE_REPLACECOLS PREHOOK: Input: default@xxx10 @@ -39,8 +39,8 @@ POSTHOOK: query: ALTER TABLE xxx10 REPLACE COLUMNS (key int) POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@xxx10 POSTHOOK: Output: default@xxx10 -FAILED: Error in semantic analysis: line 1:30 Invalid Column Reference `value` in definition of VIEW xxx9 [ +FAILED: Error in semantic analysis: Line 1:30 Invalid column reference `value` in definition of VIEW xxx9 [ SELECT `xxx10`.`key`, `xxx10`.`value` FROM `xxx10` -] used as xxx at line 1:39 in definition of VIEW xxx8 [ +] used as xxx at Line 1:39 in definition of VIEW xxx8 [ SELECT `xxx`.`key`, `xxx`.`value` FROM `xxx9` `xxx` -] used as yyy at line 2:14 +] used as yyy at Line 2:14 diff --git ql/src/test/results/clientnegative/join2.q.out ql/src/test/results/clientnegative/join2.q.out index 43565ee..246b2bb 100644 --- ql/src/test/results/clientnegative/join2.q.out +++ ql/src/test/results/clientnegative/join2.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: Map Join cannot be performed with Outer join +FAILED: Error in semantic analysis: MAPJOIN cannot be performed with OUTER JOIN diff --git ql/src/test/results/clientnegative/joinneg.q.out ql/src/test/results/clientnegative/joinneg.q.out index b1d22f8..d85d508 100644 --- ql/src/test/results/clientnegative/joinneg.q.out +++ ql/src/test/results/clientnegative/joinneg.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 5:12 Invalid Table Alias b +FAILED: Error in semantic analysis: Line 5:12 Invalid table alias b diff --git ql/src/test/results/clientnegative/lateral_view_join.q.out ql/src/test/results/clientnegative/lateral_view_join.q.out index b5a8c3b..c9311cd 100644 --- ql/src/test/results/clientnegative/lateral_view_join.q.out +++ ql/src/test/results/clientnegative/lateral_view_join.q.out @@ -1,2 +1,2 @@ -FAILED: Parse Error: line 1:59 mismatched input 'AS' expecting Identifier in table alias +FAILED: Parse Error: line 1:59 mismatched input 'AS' expecting Identifier near ')' in table alias diff --git ql/src/test/results/clientnegative/nopart_insert.q.out ql/src/test/results/clientnegative/nopart_insert.q.out index 46e724f..42bca76 100644 --- ql/src/test/results/clientnegative/nopart_insert.q.out +++ ql/src/test/results/clientnegative/nopart_insert.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE nopart_insert(a STRING, b STRING) PARTITIONED BY (ds STRING) POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@nopart_insert -FAILED: Error in semantic analysis: need to specify partition columns because the destination table is partitioned. +FAILED: Error in semantic analysis: Need to specify partition columns because the destination table is partitioned. diff --git ql/src/test/results/clientnegative/nopart_load.q.out ql/src/test/results/clientnegative/nopart_load.q.out index 84868e4..31376c8 100644 --- ql/src/test/results/clientnegative/nopart_load.q.out +++ ql/src/test/results/clientnegative/nopart_load.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE nopart_load(a STRING, b STRING) PARTITIONED BY (ds STRING) POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@nopart_load -FAILED: Error in semantic analysis: need to specify partition columns because the destination table is partitioned. +FAILED: Error in semantic analysis: Need to specify partition columns because the destination table is partitioned. diff --git ql/src/test/results/clientnegative/notable_alias3.q.out ql/src/test/results/clientnegative/notable_alias3.q.out index 15181a0..d48d5e1 100644 --- ql/src/test/results/clientnegative/notable_alias3.q.out +++ ql/src/test/results/clientnegative/notable_alias3.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE dest1(key INT, value DOUBLE) STORED AS TEXTFILE POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@dest1 -FAILED: Error in semantic analysis: line 4:44 Expression Not In Group By Key src +FAILED: Error in semantic analysis: Line 4:44 Expression not in GROUP BY key src diff --git ql/src/test/results/clientnegative/orderbysortby.q.out ql/src/test/results/clientnegative/orderbysortby.q.out index 28c3dd6..73b83a4 100644 --- ql/src/test/results/clientnegative/orderbysortby.q.out +++ ql/src/test/results/clientnegative/orderbysortby.q.out @@ -3,4 +3,4 @@ PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE dest1(key INT, ten INT, one INT, value STRING) STORED AS TEXTFILE POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@dest1 -FAILED: Error in semantic analysis: line 8:8 Cannot have both Order By and Sort By Clauses one +FAILED: Error in semantic analysis: Line 8:8 Cannot have both ORDER BY and SORT BY clauses one diff --git ql/src/test/results/clientnegative/regex_col_1.q.out ql/src/test/results/clientnegative/regex_col_1.q.out index 224c271..7547858 100644 --- ql/src/test/results/clientnegative/regex_col_1.q.out +++ ql/src/test/results/clientnegative/regex_col_1.q.out @@ -1,3 +1,3 @@ -FAILED: Error in semantic analysis: line 2:7 Invalid Column Reference `+++`: Dangling meta character '+' near index 0 +FAILED: Error in semantic analysis: Line 2:7 Invalid column reference `+++`: Dangling meta character '+' near index 0 +++ ^ diff --git ql/src/test/results/clientnegative/regex_col_2.q.out ql/src/test/results/clientnegative/regex_col_2.q.out index 5449148..f570010 100644 --- ql/src/test/results/clientnegative/regex_col_2.q.out +++ ql/src/test/results/clientnegative/regex_col_2.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:7 Invalid Column Reference `.a.` +FAILED: Error in semantic analysis: Line 2:7 Invalid column reference `.a.` diff --git ql/src/test/results/clientnegative/regex_col_groupby.q.out ql/src/test/results/clientnegative/regex_col_groupby.q.out index db7c4a8..8497718 100644 --- ql/src/test/results/clientnegative/regex_col_groupby.q.out +++ ql/src/test/results/clientnegative/regex_col_groupby.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:44 Invalid Table Alias or Column Reference `..` +FAILED: Error in semantic analysis: Line 2:44 Invalid table alias or column reference `..` diff --git ql/src/test/results/clientnegative/sample.q.out ql/src/test/results/clientnegative/sample.q.out index 1363980..02146b9 100644 --- ql/src/test/results/clientnegative/sample.q.out +++ ql/src/test/results/clientnegative/sample.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: Numberator should not be bigger than denaminator in sample clause for Table srcbucket +FAILED: Error in semantic analysis: Numberator should not be bigger than denaminator in sample clause for table srcbucket diff --git ql/src/test/results/clientnegative/select_charliteral.q.out ql/src/test/results/clientnegative/select_charliteral.q.out new file mode 100644 index 0000000..52d41b4 --- /dev/null +++ ql/src/test/results/clientnegative/select_charliteral.q.out @@ -0,0 +1,2 @@ +FAILED: Parse Error: line 3:11 mismatched input ',' expecting \' near '_c17' in character string literal + diff --git ql/src/test/results/clientnegative/select_udtf_alias.q.out ql/src/test/results/clientnegative/select_udtf_alias.q.out index f468719..77d3d9c 100644 --- ql/src/test/results/clientnegative/select_udtf_alias.q.out +++ ql/src/test/results/clientnegative/select_udtf_alias.q.out @@ -1,2 +1,2 @@ -FAILED: Parse Error: line 3:49 mismatched input 'LIMIT' expecting FROM in from clause +FAILED: Parse Error: line 3:49 mismatched input 'LIMIT' expecting FROM near ')' in from clause diff --git ql/src/test/results/clientnegative/semijoin1.q.out ql/src/test/results/clientnegative/semijoin1.q.out index 83235d0..739931f 100644 --- ql/src/test/results/clientnegative/semijoin1.q.out +++ ql/src/test/results/clientnegative/semijoin1.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:7 Invalid Table Alias or Column Reference b +FAILED: Error in semantic analysis: Line 2:7 Invalid table alias or column reference b diff --git ql/src/test/results/clientnegative/semijoin2.q.out ql/src/test/results/clientnegative/semijoin2.q.out index b846e8a..2b418de 100644 --- ql/src/test/results/clientnegative/semijoin2.q.out +++ ql/src/test/results/clientnegative/semijoin2.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:70 Invalid Table Alias or Column Reference b +FAILED: Error in semantic analysis: Line 2:70 Invalid table alias or column reference b diff --git ql/src/test/results/clientnegative/semijoin3.q.out ql/src/test/results/clientnegative/semijoin3.q.out index 2481fc6..a803b50 100644 --- ql/src/test/results/clientnegative/semijoin3.q.out +++ ql/src/test/results/clientnegative/semijoin3.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:67 Invalid Table Alias or Column Reference b +FAILED: Error in semantic analysis: Line 2:67 Invalid table alias or column reference b diff --git ql/src/test/results/clientnegative/semijoin4.q.out ql/src/test/results/clientnegative/semijoin4.q.out index 2c2a5df..86a834b 100644 --- ql/src/test/results/clientnegative/semijoin4.q.out +++ ql/src/test/results/clientnegative/semijoin4.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:112 Invalid Table Alias or Column Reference b +FAILED: Error in semantic analysis: Line 2:112 Invalid table alias or column reference b diff --git ql/src/test/results/clientnegative/show_tables_bad1.q.out ql/src/test/results/clientnegative/show_tables_bad1.q.out index 7a81c06..9e583a3 100644 --- ql/src/test/results/clientnegative/show_tables_bad1.q.out +++ ql/src/test/results/clientnegative/show_tables_bad1.q.out @@ -1,2 +1,2 @@ -FAILED: Parse Error: line 0:-1 mismatched input '' expecting set null in Identifier for show statement +FAILED: Parse Error: line 1:12 mismatched input '' expecting set null in Identifier for show statement diff --git ql/src/test/results/clientnegative/show_tables_bad2.q.out ql/src/test/results/clientnegative/show_tables_bad2.q.out index 7a81c06..f983769 100644 --- ql/src/test/results/clientnegative/show_tables_bad2.q.out +++ ql/src/test/results/clientnegative/show_tables_bad2.q.out @@ -1,2 +1,2 @@ -FAILED: Parse Error: line 0:-1 mismatched input '' expecting set null in Identifier for show statement +FAILED: Parse Error: line 1:25 mismatched input '' expecting set null in Identifier for show statement diff --git ql/src/test/results/clientnegative/smb_bucketmapjoin.q.out ql/src/test/results/clientnegative/smb_bucketmapjoin.q.out index 5f0e654..aac0388 100644 --- ql/src/test/results/clientnegative/smb_bucketmapjoin.q.out +++ ql/src/test/results/clientnegative/smb_bucketmapjoin.q.out @@ -34,4 +34,4 @@ POSTHOOK: Lineage: smb_bucket4_1.key EXPRESSION [(src)src.FieldSchema(name:key, POSTHOOK: Lineage: smb_bucket4_1.value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] POSTHOOK: Lineage: smb_bucket4_2.key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: smb_bucket4_2.value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] -FAILED: Error in semantic analysis: Map Join cannot be performed with Outer join +FAILED: Error in semantic analysis: MAPJOIN cannot be performed with OUTER JOIN diff --git ql/src/test/results/clientnegative/strict_orderby.q.out ql/src/test/results/clientnegative/strict_orderby.q.out index fe8fd62..2d3ba6b 100644 --- ql/src/test/results/clientnegative/strict_orderby.q.out +++ ql/src/test/results/clientnegative/strict_orderby.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 4:44 In strict mode, limit must be specified if ORDER BY is present key +FAILED: Error in semantic analysis: Line 4:44 In strict mode, if ORDER BY is specified, LIMIT must also be specified key diff --git ql/src/test/results/clientnegative/strict_pruning.q.out ql/src/test/results/clientnegative/strict_pruning.q.out index 3f6ce49..eacd8e1 100644 --- ql/src/test/results/clientnegative/strict_pruning.q.out +++ ql/src/test/results/clientnegative/strict_pruning.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: No Partition Predicate Found for Alias "srcpart" Table "srcpart" +FAILED: Error in semantic analysis: No partition predicate found for Alias "srcpart" Table "srcpart" diff --git ql/src/test/results/clientnegative/subq_insert.q.out ql/src/test/results/clientnegative/subq_insert.q.out index da8d18a..8c3ce79 100644 --- ql/src/test/results/clientnegative/subq_insert.q.out +++ ql/src/test/results/clientnegative/subq_insert.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:38 Cannot insert in a Subquery. Inserting to table src1 +FAILED: Error in semantic analysis: Line 2:38 Cannot insert in a subquery. Inserting to table src1 diff --git ql/src/test/results/clientnegative/udf_array_contains_wrong1.q.out ql/src/test/results/clientnegative/udf_array_contains_wrong1.q.out index a9fc662..d6b98b4 100644 --- ql/src/test/results/clientnegative/udf_array_contains_wrong1.q.out +++ ql/src/test/results/clientnegative/udf_array_contains_wrong1.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:22 Argument Type Mismatch 1: "array" expected at function ARRAY_CONTAINS, but "int" is found +FAILED: Error in semantic analysis: Line 2:22 Argument type mismatch 1: "array" expected at function ARRAY_CONTAINS, but "int" is found diff --git ql/src/test/results/clientnegative/udf_array_contains_wrong2.q.out ql/src/test/results/clientnegative/udf_array_contains_wrong2.q.out index 25459e1..7b8dca6 100644 --- ql/src/test/results/clientnegative/udf_array_contains_wrong2.q.out +++ ql/src/test/results/clientnegative/udf_array_contains_wrong2.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:38 Argument Type Mismatch '2': "int" expected at function ARRAY_CONTAINS, but "string" is found +FAILED: Error in semantic analysis: Line 2:38 Argument type mismatch '2': "int" expected at function ARRAY_CONTAINS, but "string" is found diff --git ql/src/test/results/clientnegative/udf_case_type_wrong.q.out ql/src/test/results/clientnegative/udf_case_type_wrong.q.out index 69ea973..75b9638 100644 --- ql/src/test/results/clientnegative/udf_case_type_wrong.q.out +++ ql/src/test/results/clientnegative/udf_case_type_wrong.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:13 Argument Type Mismatch 1: The expressions after WHEN should have the same type with that after CASE: "string" is expected but "int" is found +FAILED: Error in semantic analysis: Line 2:13 Argument type mismatch 1: The expressions after WHEN should have the same type with that after CASE: "string" is expected but "int" is found diff --git ql/src/test/results/clientnegative/udf_case_type_wrong2.q.out ql/src/test/results/clientnegative/udf_case_type_wrong2.q.out index 356f91d..126fa4e 100644 --- ql/src/test/results/clientnegative/udf_case_type_wrong2.q.out +++ ql/src/test/results/clientnegative/udf_case_type_wrong2.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 3:20 Argument Type Mismatch 4: The expressions after THEN should have the same type: "string" is expected but "int" is found +FAILED: Error in semantic analysis: Line 3:20 Argument type mismatch 4: The expressions after THEN should have the same type: "string" is expected but "int" is found diff --git ql/src/test/results/clientnegative/udf_case_type_wrong3.q.out ql/src/test/results/clientnegative/udf_case_type_wrong3.q.out index fd13bda..fd62771 100644 --- ql/src/test/results/clientnegative/udf_case_type_wrong3.q.out +++ ql/src/test/results/clientnegative/udf_case_type_wrong3.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 4:13 Argument Type Mismatch 7: The expression after ELSE should have the same type as those after THEN: "string" is expected but "int" is found +FAILED: Error in semantic analysis: Line 4:13 Argument type mismatch 7: The expression after ELSE should have the same type as those after THEN: "string" is expected but "int" is found diff --git ql/src/test/results/clientnegative/udf_coalesce.q.out ql/src/test/results/clientnegative/udf_coalesce.q.out index 44b5de9..a5279f5 100644 --- ql/src/test/results/clientnegative/udf_coalesce.q.out +++ ql/src/test/results/clientnegative/udf_coalesce.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:19 Argument Type Mismatch 2.0: The expressions after COALESCE should all have the same type: "int" is expected but "double" is found +FAILED: Error in semantic analysis: Line 1:19 Argument type mismatch 2.0: The expressions after COALESCE should all have the same type: "int" is expected but "double" is found diff --git ql/src/test/results/clientnegative/udf_elt_wrong_args_len.q.out ql/src/test/results/clientnegative/udf_elt_wrong_args_len.q.out index ef4e67f..22a085a 100644 --- ql/src/test/results/clientnegative/udf_elt_wrong_args_len.q.out +++ ql/src/test/results/clientnegative/udf_elt_wrong_args_len.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:7 Arguments Length Mismatch 3: The function ELT(N,str1,str2,str3,...) needs at least two arguments. +FAILED: Error in semantic analysis: Line 1:7 Arguments length mismatch 3: The function ELT(N,str1,str2,str3,...) needs at least two arguments. diff --git ql/src/test/results/clientnegative/udf_elt_wrong_type.q.out ql/src/test/results/clientnegative/udf_elt_wrong_type.q.out index 1ca50f7..fc83f23 100644 --- ql/src/test/results/clientnegative/udf_elt_wrong_type.q.out +++ ql/src/test/results/clientnegative/udf_elt_wrong_type.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:14 Argument Type Mismatch lintstring: The 2nd argument of function ELT is expected to a primitive type, but list is found +FAILED: Error in semantic analysis: Line 2:14 Argument type mismatch lintstring: The 2nd argument of function ELT is expected to a primitive type, but list is found diff --git ql/src/test/results/clientnegative/udf_field_wrong_args_len.q.out ql/src/test/results/clientnegative/udf_field_wrong_args_len.q.out index 42b24eb..3bf97d9 100644 --- ql/src/test/results/clientnegative/udf_field_wrong_args_len.q.out +++ ql/src/test/results/clientnegative/udf_field_wrong_args_len.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:7 Wrong Arguments 3: The function FIELD(str, str1, str2, ...) needs at least two arguments. +FAILED: Error in semantic analysis: Line 1:7 Wrong arguments 3: The function FIELD(str, str1, str2, ...) needs at least two arguments. diff --git ql/src/test/results/clientnegative/udf_field_wrong_type.q.out ql/src/test/results/clientnegative/udf_field_wrong_type.q.out index 2c6a48e..2a2e944 100644 --- ql/src/test/results/clientnegative/udf_field_wrong_type.q.out +++ ql/src/test/results/clientnegative/udf_field_wrong_type.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:16 Argument Type Mismatch lintstring: The 2nd argument of function FIELD is expected to a primitive type, but list is found +FAILED: Error in semantic analysis: Line 2:16 Argument type mismatch lintstring: The 2nd argument of function FIELD is expected to a primitive type, but list is found diff --git ql/src/test/results/clientnegative/udf_if_not_bool.q.out ql/src/test/results/clientnegative/udf_if_not_bool.q.out index d7ae204..a3c8902 100644 --- ql/src/test/results/clientnegative/udf_if_not_bool.q.out +++ ql/src/test/results/clientnegative/udf_if_not_bool.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:10 Argument Type Mismatch 'STRING': The first argument of function IF should be "boolean", but "string" is found +FAILED: Error in semantic analysis: Line 1:10 Argument type mismatch 'STRING': The first argument of function IF should be "boolean", but "string" is found diff --git ql/src/test/results/clientnegative/udf_if_wrong_args_len.q.out ql/src/test/results/clientnegative/udf_if_wrong_args_len.q.out index 8862493..89b23c8 100644 --- ql/src/test/results/clientnegative/udf_if_wrong_args_len.q.out +++ ql/src/test/results/clientnegative/udf_if_wrong_args_len.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:7 Arguments Length Mismatch 1: The function IF(expr1,expr2,expr3) accepts exactly 3 arguments. +FAILED: Error in semantic analysis: Line 1:7 Arguments length mismatch 1: The function IF(expr1,expr2,expr3) accepts exactly 3 arguments. diff --git ql/src/test/results/clientnegative/udf_in.q.out ql/src/test/results/clientnegative/udf_in.q.out index 9dd7ee5..50a6b98 100644 --- ql/src/test/results/clientnegative/udf_in.q.out +++ ql/src/test/results/clientnegative/udf_in.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:9 Wrong Arguments 3: The arguments for IN should be the same type! Types are: {int IN (array)} +FAILED: Error in semantic analysis: Line 1:9 Wrong arguments 3: The arguments for IN should be the same type! Types are: {int IN (array)} diff --git ql/src/test/results/clientnegative/udf_instr_wrong_args_len.q.out ql/src/test/results/clientnegative/udf_instr_wrong_args_len.q.out index 5465ebf..7f66db7 100644 --- ql/src/test/results/clientnegative/udf_instr_wrong_args_len.q.out +++ ql/src/test/results/clientnegative/udf_instr_wrong_args_len.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:7 Arguments Length Mismatch 'abcd': The function INSTR accepts exactly 2 arguments. +FAILED: Error in semantic analysis: Line 1:7 Arguments length mismatch 'abcd': The function INSTR accepts exactly 2 arguments. diff --git ql/src/test/results/clientnegative/udf_instr_wrong_type.q.out ql/src/test/results/clientnegative/udf_instr_wrong_type.q.out index c4854a6..89d8542 100644 --- ql/src/test/results/clientnegative/udf_instr_wrong_type.q.out +++ ql/src/test/results/clientnegative/udf_instr_wrong_type.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:21 Argument Type Mismatch lintstring: The 2nd argument of function INSTR is expected to a primitive type, but list is found +FAILED: Error in semantic analysis: Line 2:21 Argument type mismatch lintstring: The 2nd argument of function INSTR is expected to a primitive type, but list is found diff --git ql/src/test/results/clientnegative/udf_locate_wrong_args_len.q.out ql/src/test/results/clientnegative/udf_locate_wrong_args_len.q.out index 6b5ad6f..46613e8 100644 --- ql/src/test/results/clientnegative/udf_locate_wrong_args_len.q.out +++ ql/src/test/results/clientnegative/udf_locate_wrong_args_len.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:7 Arguments Length Mismatch 2: The function LOCATE accepts exactly 2 or 3 arguments. +FAILED: Error in semantic analysis: Line 1:7 Arguments length mismatch 2: The function LOCATE accepts exactly 2 or 3 arguments. diff --git ql/src/test/results/clientnegative/udf_locate_wrong_type.q.out ql/src/test/results/clientnegative/udf_locate_wrong_type.q.out index 3506901..42cc4b6 100644 --- ql/src/test/results/clientnegative/udf_locate_wrong_type.q.out +++ ql/src/test/results/clientnegative/udf_locate_wrong_type.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:22 Argument Type Mismatch lintstring: The 2nd argument of function LOCATE is expected to a primitive type, but list is found +FAILED: Error in semantic analysis: Line 2:22 Argument type mismatch lintstring: The 2nd argument of function LOCATE is expected to a primitive type, but list is found diff --git ql/src/test/results/clientnegative/udf_size_wrong_args_len.q.out ql/src/test/results/clientnegative/udf_size_wrong_args_len.q.out index edb9662..b05731e 100644 --- ql/src/test/results/clientnegative/udf_size_wrong_args_len.q.out +++ ql/src/test/results/clientnegative/udf_size_wrong_args_len.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 2:7 Arguments Length Mismatch lintstring: The function SIZE only accepts 1 argument. +FAILED: Error in semantic analysis: Line 2:7 Arguments length mismatch lintstring: The function SIZE only accepts 1 argument. diff --git ql/src/test/results/clientnegative/udf_size_wrong_type.q.out ql/src/test/results/clientnegative/udf_size_wrong_type.q.out index ea41485..0c91c8f 100644 --- ql/src/test/results/clientnegative/udf_size_wrong_type.q.out +++ ql/src/test/results/clientnegative/udf_size_wrong_type.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 1:12 Argument Type Mismatch 'wrong type: string': "map" or "list" is expected at function SIZE, but "string" is found +FAILED: Error in semantic analysis: Line 1:12 Argument type mismatch 'wrong type: string': "map" or "list" is expected at function SIZE, but "string" is found diff --git ql/src/test/results/clientnegative/udf_when_type_wrong.q.out ql/src/test/results/clientnegative/udf_when_type_wrong.q.out index ced2310..bec3725 100644 --- ql/src/test/results/clientnegative/udf_when_type_wrong.q.out +++ ql/src/test/results/clientnegative/udf_when_type_wrong.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 3:13 Argument Type Mismatch '1': "boolean" is expected after WHEN, but "string" is found +FAILED: Error in semantic analysis: Line 3:13 Argument type mismatch '1': "boolean" is expected after WHEN, but "string" is found diff --git ql/src/test/results/clientnegative/udf_when_type_wrong2.q.out ql/src/test/results/clientnegative/udf_when_type_wrong2.q.out index 0911660..5b06467 100644 --- ql/src/test/results/clientnegative/udf_when_type_wrong2.q.out +++ ql/src/test/results/clientnegative/udf_when_type_wrong2.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 3:22 Argument Type Mismatch 4: The expressions after THEN should have the same type: "string" is expected but "int" is found +FAILED: Error in semantic analysis: Line 3:22 Argument type mismatch 4: The expressions after THEN should have the same type: "string" is expected but "int" is found diff --git ql/src/test/results/clientnegative/udf_when_type_wrong3.q.out ql/src/test/results/clientnegative/udf_when_type_wrong3.q.out index 4836e89..6974dd7 100644 --- ql/src/test/results/clientnegative/udf_when_type_wrong3.q.out +++ ql/src/test/results/clientnegative/udf_when_type_wrong3.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: line 4:13 Argument Type Mismatch 5.3: The expression after ELSE should have the same type as those after THEN: "string" is expected but "double" is found +FAILED: Error in semantic analysis: Line 4:13 Argument type mismatch 5.3: The expression after ELSE should have the same type as those after THEN: "string" is expected but "double" is found diff --git ql/src/test/results/clientnegative/union.q.out ql/src/test/results/clientnegative/union.q.out index 2f670f9..333230d 100644 --- ql/src/test/results/clientnegative/union.q.out +++ ql/src/test/results/clientnegative/union.q.out @@ -1 +1 @@ -FAILED: Error in semantic analysis: Top level Union is not supported currently; use a subquery for the union +FAILED: Error in semantic analysis: Top level UNION is not supported currently; use a subquery for the UNION diff --git ql/src/test/results/compiler/errors/ambiguous_table_col.q.out ql/src/test/results/compiler/errors/ambiguous_table_col.q.out index f3b9638..1641ead 100644 --- ql/src/test/results/compiler/errors/ambiguous_table_col.q.out +++ ql/src/test/results/compiler/errors/ambiguous_table_col.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:50 Ambiguous Table Alias or Column Reference key \ No newline at end of file +Line 2:50 Ambiguous table alias or column reference key \ No newline at end of file diff --git ql/src/test/results/compiler/errors/duplicate_alias.q.out ql/src/test/results/compiler/errors/duplicate_alias.q.out index c515361..1429744 100644 --- ql/src/test/results/compiler/errors/duplicate_alias.q.out +++ ql/src/test/results/compiler/errors/duplicate_alias.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 1:20 Ambiguous Table Alias a \ No newline at end of file +Line 1:20 Ambiguous table alias a \ No newline at end of file diff --git ql/src/test/results/compiler/errors/garbage.q.out ql/src/test/results/compiler/errors/garbage.q.out index 1fc0743..159364f 100644 --- ql/src/test/results/compiler/errors/garbage.q.out +++ ql/src/test/results/compiler/errors/garbage.q.out @@ -1 +1 @@ -Parse Error: line 1:0 cannot recognize input 'this' +Parse Error: line 1:0 cannot recognize input near 'this' 'is' 'totally' diff --git ql/src/test/results/compiler/errors/insert_wrong_number_columns.q.out ql/src/test/results/compiler/errors/insert_wrong_number_columns.q.out index 62ab914..7efe359 100644 --- ql/src/test/results/compiler/errors/insert_wrong_number_columns.q.out +++ ql/src/test/results/compiler/errors/insert_wrong_number_columns.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:23 Cannot insert into target table because column number/types are different dest1: Table insclause-0 has 2 columns, but query has 3 columns. \ No newline at end of file +Line 2:23 Cannot insert into target table because column number/types are different dest1: Table insclause-0 has 2 columns, but query has 3 columns. \ No newline at end of file diff --git ql/src/test/results/compiler/errors/invalid_create_table.q.out ql/src/test/results/compiler/errors/invalid_create_table.q.out index 7e4a260..bb541f9 100644 --- ql/src/test/results/compiler/errors/invalid_create_table.q.out +++ ql/src/test/results/compiler/errors/invalid_create_table.q.out @@ -1 +1 @@ -Parse Error: line 3:2 mismatched input 'b' expecting ) in create table statement +Parse Error: line 3:2 mismatched input 'b' expecting ) near 'INT' in create table statement diff --git ql/src/test/results/compiler/errors/invalid_dot.q.out ql/src/test/results/compiler/errors/invalid_dot.q.out index 13f4162..e63be5f 100644 --- ql/src/test/results/compiler/errors/invalid_dot.q.out +++ ql/src/test/results/compiler/errors/invalid_dot.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:36 . operator is only supported on struct or list of struct types member \ No newline at end of file +Line 2:36 . Operator is only supported on struct or list of struct types member \ No newline at end of file diff --git ql/src/test/results/compiler/errors/invalid_function_param2.q.out ql/src/test/results/compiler/errors/invalid_function_param2.q.out index a1dfed6..f1f41a1 100644 --- ql/src/test/results/compiler/errors/invalid_function_param2.q.out +++ ql/src/test/results/compiler/errors/invalid_function_param2.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:36 Wrong Arguments 'abc': No matching method for class org.apache.hadoop.hive.ql.udf.UDFSubstr with (string, string). Possible choices: _FUNC_(string, int, int) _FUNC_(string, int) \ No newline at end of file +Line 2:36 Wrong arguments 'abc': No matching method for class org.apache.hadoop.hive.ql.udf.UDFSubstr with (string, string). Possible choices: _FUNC_(string, int, int) _FUNC_(string, int) \ No newline at end of file diff --git ql/src/test/results/compiler/errors/invalid_index.q.out ql/src/test/results/compiler/errors/invalid_index.q.out index 940fb60..77dc0c0 100644 --- ql/src/test/results/compiler/errors/invalid_index.q.out +++ ql/src/test/results/compiler/errors/invalid_index.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:36 [] not Valid on Non Collection Types 0: string \ No newline at end of file +Line 2:36 [] not valid on non-collection types 0: string \ No newline at end of file diff --git ql/src/test/results/compiler/errors/invalid_list_index.q.out ql/src/test/results/compiler/errors/invalid_list_index.q.out index e72f2a6..3714b68 100644 --- ql/src/test/results/compiler/errors/invalid_list_index.q.out +++ ql/src/test/results/compiler/errors/invalid_list_index.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:56 Non Constant Expressions for Array Indexes not Supported 'abc' \ No newline at end of file +Line 2:56 Non-constant expressions for array indexes not supported 'abc' \ No newline at end of file diff --git ql/src/test/results/compiler/errors/invalid_list_index2.q.out ql/src/test/results/compiler/errors/invalid_list_index2.q.out index 0531892..c64b248 100644 --- ql/src/test/results/compiler/errors/invalid_list_index2.q.out +++ ql/src/test/results/compiler/errors/invalid_list_index2.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:56 Non Constant Expressions for Array Indexes not Supported 2 \ No newline at end of file +Line 2:56 Non-constant expressions for array indexes not supported 2 \ No newline at end of file diff --git ql/src/test/results/compiler/errors/invalid_map_index.q.out ql/src/test/results/compiler/errors/invalid_map_index.q.out index 1d49758..e241bc6 100644 --- ql/src/test/results/compiler/errors/invalid_map_index.q.out +++ ql/src/test/results/compiler/errors/invalid_map_index.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:56 Map Key Type does not Match Index Expression Type 0 \ No newline at end of file +Line 2:56 MAP key type does not match index expression type 0 \ No newline at end of file diff --git ql/src/test/results/compiler/errors/invalid_map_index2.q.out ql/src/test/results/compiler/errors/invalid_map_index2.q.out index f873288..1c8d660 100644 --- ql/src/test/results/compiler/errors/invalid_map_index2.q.out +++ ql/src/test/results/compiler/errors/invalid_map_index2.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:56 Non Constant Expression for Map Indexes not Supported 'abc' \ No newline at end of file +Line 2:56 Non-constant expression for map indexes not supported 'abc' \ No newline at end of file diff --git ql/src/test/results/compiler/errors/invalid_select.q.out ql/src/test/results/compiler/errors/invalid_select.q.out index 9a5d6f3..b621ef7 100644 --- ql/src/test/results/compiler/errors/invalid_select.q.out +++ ql/src/test/results/compiler/errors/invalid_select.q.out @@ -1 +1 @@ -Parse Error: line 3:6 mismatched input '(' expecting FROM in from clause +Parse Error: line 3:6 mismatched input '(' expecting FROM near 'trim' in from clause diff --git ql/src/test/results/compiler/errors/missing_overwrite.q.out ql/src/test/results/compiler/errors/missing_overwrite.q.out index c3b1d19..021fd85 100644 --- ql/src/test/results/compiler/errors/missing_overwrite.q.out +++ ql/src/test/results/compiler/errors/missing_overwrite.q.out @@ -1 +1 @@ -Parse Error: line 2:7 mismatched input 'TABLE' expecting OVERWRITE in insert clause +Parse Error: line 2:7 mismatched input 'TABLE' expecting OVERWRITE near 'INSERT' in insert clause diff --git ql/src/test/results/compiler/errors/nonkey_groupby.q.out ql/src/test/results/compiler/errors/nonkey_groupby.q.out index 283996f..21a9f46 100644 --- ql/src/test/results/compiler/errors/nonkey_groupby.q.out +++ ql/src/test/results/compiler/errors/nonkey_groupby.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:44 Expression Not In Group By Key src \ No newline at end of file +Line 2:44 Expression not in GROUP BY key src \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_column1.q.out ql/src/test/results/compiler/errors/unknown_column1.q.out index e1baf3c..4d89065 100644 --- ql/src/test/results/compiler/errors/unknown_column1.q.out +++ ql/src/test/results/compiler/errors/unknown_column1.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:48 Invalid Column Reference dummycol \ No newline at end of file +Line 2:48 Invalid column reference dummycol \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_column2.q.out ql/src/test/results/compiler/errors/unknown_column2.q.out index 7671426..43f31db 100644 --- ql/src/test/results/compiler/errors/unknown_column2.q.out +++ ql/src/test/results/compiler/errors/unknown_column2.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:64 Invalid Column Reference dummykey \ No newline at end of file +Line 2:64 Invalid column reference dummykey \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_column3.q.out ql/src/test/results/compiler/errors/unknown_column3.q.out index 01f3ebd..d8ee8d0 100644 --- ql/src/test/results/compiler/errors/unknown_column3.q.out +++ ql/src/test/results/compiler/errors/unknown_column3.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:87 Invalid Column Reference dummycol \ No newline at end of file +Line 2:87 Invalid column reference dummycol \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_column4.q.out ql/src/test/results/compiler/errors/unknown_column4.q.out index a27a242..24d8c87 100644 --- ql/src/test/results/compiler/errors/unknown_column4.q.out +++ ql/src/test/results/compiler/errors/unknown_column4.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:83 Invalid Table Alias or Column Reference dummysrc \ No newline at end of file +Line 2:83 Invalid table alias or column reference dummysrc \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_column5.q.out ql/src/test/results/compiler/errors/unknown_column5.q.out index 1b1d434..d15e993 100644 --- ql/src/test/results/compiler/errors/unknown_column5.q.out +++ ql/src/test/results/compiler/errors/unknown_column5.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:60 Invalid Table Alias or Column Reference dummysrc \ No newline at end of file +Line 2:60 Invalid table alias or column reference dummysrc \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_column6.q.out ql/src/test/results/compiler/errors/unknown_column6.q.out index b5ea724..aac42d1 100644 --- ql/src/test/results/compiler/errors/unknown_column6.q.out +++ ql/src/test/results/compiler/errors/unknown_column6.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:44 Expression Not In Group By Key dummysrc \ No newline at end of file +Line 2:44 Expression not in GROUP BY key dummysrc \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_function1.q.out ql/src/test/results/compiler/errors/unknown_function1.q.out index c087bc2..5180f38 100644 --- ql/src/test/results/compiler/errors/unknown_function1.q.out +++ ql/src/test/results/compiler/errors/unknown_function1.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:44 Invalid Function dummyfn \ No newline at end of file +Line 2:44 Invalid function dummyfn \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_function2.q.out ql/src/test/results/compiler/errors/unknown_function2.q.out index c0d22d8..dcb97bc 100644 --- ql/src/test/results/compiler/errors/unknown_function2.q.out +++ ql/src/test/results/compiler/errors/unknown_function2.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:60 Invalid Function anotherdummyfn \ No newline at end of file +Line 2:60 Invalid function anotherdummyfn \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_function3.q.out ql/src/test/results/compiler/errors/unknown_function3.q.out index c0d22d8..dcb97bc 100644 --- ql/src/test/results/compiler/errors/unknown_function3.q.out +++ ql/src/test/results/compiler/errors/unknown_function3.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:60 Invalid Function anotherdummyfn \ No newline at end of file +Line 2:60 Invalid function anotherdummyfn \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_function4.q.out ql/src/test/results/compiler/errors/unknown_function4.q.out index c087bc2..5180f38 100644 --- ql/src/test/results/compiler/errors/unknown_function4.q.out +++ ql/src/test/results/compiler/errors/unknown_function4.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:44 Invalid Function dummyfn \ No newline at end of file +Line 2:44 Invalid function dummyfn \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_table1.q.out ql/src/test/results/compiler/errors/unknown_table1.q.out index 1286e2b..ff92e4e 100644 --- ql/src/test/results/compiler/errors/unknown_table1.q.out +++ ql/src/test/results/compiler/errors/unknown_table1.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 1:5 Table not found dummySrc \ No newline at end of file +Line 1:5 Table not found dummySrc \ No newline at end of file diff --git ql/src/test/results/compiler/errors/unknown_table2.q.out ql/src/test/results/compiler/errors/unknown_table2.q.out index 6622329..54185e4 100644 --- ql/src/test/results/compiler/errors/unknown_table2.q.out +++ ql/src/test/results/compiler/errors/unknown_table2.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:23 Table not found dummyDest \ No newline at end of file +Line 2:23 Table not found dummyDest \ No newline at end of file diff --git ql/src/test/results/compiler/errors/wrong_distinct1.q.out ql/src/test/results/compiler/errors/wrong_distinct1.q.out index 138b05a..74bc6e6 100644 --- ql/src/test/results/compiler/errors/wrong_distinct1.q.out +++ ql/src/test/results/compiler/errors/wrong_distinct1.q.out @@ -1,2 +1,2 @@ Semantic Exception: -line 2:85 SELECT DISTINCT and GROUP BY can not be in the same query key \ No newline at end of file +Line 2:85 SELECT DISTINCT and GROUP BY can not be in the same query key \ No newline at end of file diff --git ql/src/test/results/compiler/errors/wrong_distinct2.q.out ql/src/test/results/compiler/errors/wrong_distinct2.q.out index 9155bca..9dc7f23 100644 --- ql/src/test/results/compiler/errors/wrong_distinct2.q.out +++ ql/src/test/results/compiler/errors/wrong_distinct2.q.out @@ -1 +1 @@ -Parse Error: line 2:45 cannot recognize input 'DISTINCT' in select expression +Parse Error: line 2:45 cannot recognize input near 'DISTINCT' 'substr' '(' in select expression -- 1.7.4.4