[jira] [Updated] (HIVE-2439) Upgrade antlr version to 3.4
[ https://issues.apache.org/jira/browse/HIVE-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashutosh Chauhan updated HIVE-2439: --- Resolution: Fixed Fix Version/s: 0.11.0 Release Note: Beginning 0.11, Hive has started to use antlr 3.4 Status: Resolved (was: Patch Available) Committed to trunk. Thanks, Thiruvel! Upgrade antlr version to 3.4 Key: HIVE-2439 URL: https://issues.apache.org/jira/browse/HIVE-2439 Project: Hive Issue Type: Improvement Affects Versions: 0.8.0 Reporter: Ashutosh Chauhan Assignee: Thiruvel Thirumoolan Fix For: 0.11.0 Attachments: HIVE-2439_branch10.patch, HIVE-2439_branch9_2.patch, HIVE-2439_branch9_3.patch, HIVE-2439_branch9.patch, hive-2439_incomplete.patch, HIVE-2439_trunk_1.patch, HIVE-2439_trunk_2.patch, HIVE-2439_trunk.patch Upgrade antlr version to 3.4 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2439) Upgrade antlr version to 3.4
[ https://issues.apache.org/jira/browse/HIVE-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thiruvel Thirumoolan updated HIVE-2439: --- Attachment: HIVE-2439_trunk_2.patch Updated patch on phabricator (https://reviews.facebook.net/D7527) with set_table_property.q.out changes and re-ran all tests on trunk. Attached trunk_2 patch to the JIRA for reference. Upgrade antlr version to 3.4 Key: HIVE-2439 URL: https://issues.apache.org/jira/browse/HIVE-2439 Project: Hive Issue Type: Improvement Affects Versions: 0.8.0 Reporter: Ashutosh Chauhan Assignee: Thiruvel Thirumoolan Attachments: HIVE-2439_branch10.patch, HIVE-2439_branch9_2.patch, HIVE-2439_branch9_3.patch, HIVE-2439_branch9.patch, hive-2439_incomplete.patch, HIVE-2439_trunk_1.patch, HIVE-2439_trunk_2.patch, HIVE-2439_trunk.patch Upgrade antlr version to 3.4 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2439) Upgrade antlr version to 3.4
[ https://issues.apache.org/jira/browse/HIVE-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thiruvel Thirumoolan updated HIVE-2439: --- Attachment: HIVE-2439_branch10.patch HIVE-2439_trunk_1.patch Upgrade antlr version to 3.4 Key: HIVE-2439 URL: https://issues.apache.org/jira/browse/HIVE-2439 Project: Hive Issue Type: Improvement Affects Versions: 0.8.0 Reporter: Ashutosh Chauhan Assignee: Thiruvel Thirumoolan Attachments: HIVE-2439_branch10.patch, HIVE-2439_branch9_2.patch, HIVE-2439_branch9_3.patch, HIVE-2439_branch9.patch, hive-2439_incomplete.patch, HIVE-2439_trunk_1.patch, HIVE-2439_trunk.patch Upgrade antlr version to 3.4 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2439) Upgrade antlr version to 3.4
[ https://issues.apache.org/jira/browse/HIVE-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thiruvel Thirumoolan updated HIVE-2439: --- Attachment: HIVE-2439_trunk.patch Uploading HIVE-2439_trunk.patch. It applies on trunk and branch 10. Ran unit tests. Have problems with my review account, will post it later if I get it working. Upgrade antlr version to 3.4 Key: HIVE-2439 URL: https://issues.apache.org/jira/browse/HIVE-2439 Project: Hive Issue Type: Improvement Affects Versions: 0.8.0 Reporter: Ashutosh Chauhan Attachments: HIVE-2439_branch9_2.patch, HIVE-2439_branch9_3.patch, HIVE-2439_branch9.patch, hive-2439_incomplete.patch, HIVE-2439_trunk.patch Upgrade antlr version to 3.4 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2439) Upgrade antlr version to 3.4
[ https://issues.apache.org/jira/browse/HIVE-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thiruvel Thirumoolan updated HIVE-2439: --- Attachment: HIVE-2439_branch9_3.patch This patch addresses the issues related to views that were failing before. With this all previous failing tests pass. Early feedback welcome. Here is a description of the problem related to views. UnparseTranslator() has a translation map where its possible to replace all the text with the appropriate escaped version [say invites.ds will be replaced with `invites`.`ds` and the entire query is processed like this and stored as Extended text in table's metadata]. This holds all individual translations and where they apply in the stream. The newer antlr has some conditions on overlap. Two of the entries in this translation map can be disjoint or even the same, but there cannot be partial overlap, which causes the exception. Some of the entries during join_view.q: One can think of the below as UnparseTranslator.translations entries. Start: Stop: Replacement Text .. 39:41:`invites`.`ds` 41:41:`ds` 43:45:`invites2`.`ds` 45:45:`ds` .. Other translations don't seem to have a problem. Whenever SemanticAnalyser finds that a translation is required, it will add it to the translation map. In this case 41:41:`ds` is being added by parseJoinCondPopulateAlias() for the HiveParser.Identifier case. And 43:45:`invites2`.`ds` is done by genExprNodeDesc() after this during plan generation. So there is a duplicate entry. UnparseTranslator.addTranslation() has logic to eliminate subsets but seem to miss this. Have included this situation in the patch. Upgrade antlr version to 3.4 Key: HIVE-2439 URL: https://issues.apache.org/jira/browse/HIVE-2439 Project: Hive Issue Type: Improvement Affects Versions: 0.8.0 Reporter: Ashutosh Chauhan Attachments: HIVE-2439_branch9_2.patch, HIVE-2439_branch9_3.patch, HIVE-2439_branch9.patch, hive-2439_incomplete.patch Upgrade antlr version to 3.4 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2439) Upgrade antlr version to 3.4
[ https://issues.apache.org/jira/browse/HIVE-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thiruvel Thirumoolan updated HIVE-2439: --- Attachment: HIVE-2439_branch9.patch Work in progress patch for branch9. Inherits from Ashutosh's previous patch. Majority of the test cases that failed previously pass now, though there are still failures. For experimentation I used https://github.com/thiruvel/HiveANTLR34Issue and changed the grammar there and confirmed the same tree is generated with antlr 3.2 and 3.4. Feedback/Comments welcome. Upgrade antlr version to 3.4 Key: HIVE-2439 URL: https://issues.apache.org/jira/browse/HIVE-2439 Project: Hive Issue Type: Improvement Affects Versions: 0.8.0 Reporter: Ashutosh Chauhan Attachments: HIVE-2439_branch9.patch, hive-2439_incomplete.patch Upgrade antlr version to 3.4 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2439) Upgrade antlr version to 3.4
[ https://issues.apache.org/jira/browse/HIVE-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashutosh Chauhan updated HIVE-2439: --- Attachment: hive-2439_incomplete.patch This is an incomplete patch which you need to get past this problem. But this patch is not sufficient. I worked on this briefly in September and encountered a bug in antlr. See: http://www.antlr.org/pipermail/antlr-interest/2011-September/042720.html I have not been able to narrow it down to file an official bug in antlr but right now I am apprehensive about 3.4. Good news though is antlr community is talking about 3.4.1 which may get released soon. Upgrade antlr version to 3.4 Key: HIVE-2439 URL: https://issues.apache.org/jira/browse/HIVE-2439 Project: Hive Issue Type: Improvement Affects Versions: 0.8.0 Reporter: Ashutosh Chauhan Attachments: hive-2439_incomplete.patch Upgrade antlr version to 3.4 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira