Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-862

Updating HQLParser.printAST() to print Char Position In Line. Useful for Debugging

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.5
    • 2.5
    • cube
    • None

    Description

      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)

      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)$
                  }
                }
      ...
      ...
      

      Attachments

        1. lens-862.patch
          0.7 kB
          Puneet Gupta

        Activity

          People

            puneet884 Puneet Gupta
            puneet884 Puneet Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: