[ 
https://issues.apache.org/jira/browse/LENS-862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006255#comment-15006255
 ] 

Rajat Khandelwal commented on LENS-862:
---------------------------------------

Committed. Thanks [~puneet884]

> Updating HQLParser.printAST() to print Char Position In Line. Useful for  
> Debugging
> -----------------------------------------------------------------------------------
>
>                 Key: LENS-862
>                 URL: https://issues.apache.org/jira/browse/LENS-862
>             Project: Apache Lens
>          Issue Type: Improvement
>          Components: cube
>    Affects Versions: 2.5
>            Reporter: Puneet Gupta
>            Assignee: Puneet Gupta
>            Priority: Trivial
>             Fix For: 2.5
>
>         Attachments: lens-862.patch
>
>
> Updating HQLParser.printAST() to print Char Position In Line. Useful for  
> Debugging.  
> Earlier the level and child position  was being printed . Added char position 
> in line also (Example l0c0p393 : level 0, child 0, char position 393)
> {noformat}
> TOK_QUERY [TOK_QUERY] (l0c0p393) {
>   TOK_FROM [TOK_FROM] (l1c1p393) {
>     TOK_SUBQUERY [TOK_SUBQUERY] (l2c1p393) {
>       TOK_UNION [TOK_UNION] (l3c1p393) {
>         TOK_QUERY [TOK_QUERY] (l4c1p393) {
>           TOK_FROM [TOK_FROM] (l5c1p393) {
>             TOK_TABREF [TOK_TABREF] (l6c1p393) {
>               TOK_TABNAME [TOK_TABNAME] (l7c1p393) {
>                 TestQueryRewrite [Identifier] (l8c1p393)$
>                 c1_testfact [Identifier] (l8c2p410)$
>               }
>               testcube [Identifier] (l7c2p422)$
>             }
>           }
> ...
> ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to