Zoltan Haindrich created HIVE-25752: ---------------------------------------
Summary: Fix incremental compilation of parser module Key: HIVE-25752 URL: https://issues.apache.org/jira/browse/HIVE-25752 Project: Hive Issue Type: Bug Reporter: Zoltan Haindrich Assignee: Zoltan Haindrich this issue doesn't happen all the time - but when it does its really annoying the problem is that the antlr files are not regenerated; however the "HiveParser.java Fix" is run regardless...which corrupts the java files after a second run and causes compilation errors {code} [INFO] --- antlr3-maven-plugin:3.5.2:antlr (default) @ hive-parser --- [INFO] ANTLR: Processing source directory /home/dev/hive/parser/src/java ANTLR Parser Generator Version 3.5.2 Grammar /home/dev/hive/parser/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g is up to date - build skipped Grammar /home/dev/hive/parser/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g is up to date - build skipped Grammar /home/dev/hive/parser/src/java/org/apache/hadoop/hive/ql/parse/HiveLexerStandard.g is up to date - build skipped Grammar /home/dev/hive/parser/src/java/org/apache/hadoop/hive/ql/parse/HintParser.g is up to date - build skipped [INFO] [INFO] --- exec-maven-plugin:3.0.0:exec (HiveParser.java fix) @ hive-parser --- [INFO] {code} erros like: {code} [ERROR] /home/dev/hive/parser/target/generated-sources/antlr3/org/apache/hadoop/hive/ql/parse/HiveParser.java:[50,16] class, interface, or enum expected {code} but I've also seen {code} [ERROR] /home/dev/hive/parser/target/generated-sources/antlr3/org/apache/hadoop/hive/ql/parse/HiveParser.java:[49,32] cannot find symbol [ERROR] symbol: class statement_return [ERROR] location: class org.apache.hadoop.hive.ql.parse.HiveParser [ERROR] /home/dev/hive/parser/target/generated-sources/antlr3/org/apache/hadoop/hive/ql/parse/HiveParserTokens.java:[13,19] cannot find symbol {code} -- This message was sent by Atlassian Jira (v8.20.1#820001)