hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Mollitor (Jira)" <>
Subject [jira] [Commented] (HIVE-15577) Simplify current parser
Date Fri, 10 Apr 2020 02:22:00 GMT


David Mollitor commented on HIVE-15577:

I am investigating [HIVE-23172] and I am having a problem addressing this because I am getting
the following error from compiling the grammar:
hive-parser: Compilation failure
[ERROR] /home/apache/hive/hive/parser/target/generated-sources/antlr3/org/apache/hadoop/hive/ql/parse/[40,38]
code too large

I traced it down to the fact that there are too many token defined.  In,
it has the following:

public static final String[] tokenNames = new String[] \{ ... };
That list is so long, it's breaking Java compilation.
I observed that the parser defines two token for most elements, for example:
I propose consolidating this down to one and conserve some space.  I would propose just using 
KW_TRUNCATE and get rid of the TOK version.

> Simplify current parser
> -----------------------
>                 Key: HIVE-15577
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>            Priority: Major
> We encountered "code too large" problem frequently. We need to reduce the code size.

This message was sent by Atlassian Jira

View raw message