[
https://issues.apache.org/jira/browse/TAJO-1348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14381429#comment-14381429
]
Jongyoung Park commented on TAJO-1348:
--------------------------------------
As I investigated, there are two challenges.
Firstly, the message is generated from inside of ANTLR.
It means all similar cases display same style of message.
Secondly, the message is made when parsing 'PARTITION BY' and recognizing
'USING' is missing.
So it is regardless of whether USING exists later or not.
Thus, even though we can override the
method(DefaultErrorStrategy.reportMissingToken()) and implement, we cannot
check if both keywords are exchanged unless the parser itself is modified.
This issue is based on parsing algorithm originally.
My suggestion is 'won't fix'.
Or alternatively, we can change 'at' to 'before' in the message.
Choosing second way, of course it will affect all same cases.
> Parser error during create partitioned table
> --------------------------------------------
>
> Key: TAJO-1348
> URL: https://issues.apache.org/jira/browse/TAJO-1348
> Project: Tajo
> Issue Type: Bug
> Components: parser
> Affects Versions: 0.9.0
> Reporter: Fengdong Yu
> Assignee: Navis
>
> We must create partitioned table like this :
> create external table ex_table (a text, b text)
> USING RCFILE
> PARTITION BY COLUMN (dt text)
> LOCATION '/data/text;
> 'USING RCFILE' MUST place before 'PARTITION BY COLUMN', otherwise, Tajo
> complain 'ERROR: missing USING at 'PARTITION'
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)