Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-1925

Parser error message doesn't show location of the error or show it as Line 0:0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.9.0
    • None
    • None

    Description

      When Parser emits an error from one of the tree parsers (like AST validation or plan generation), Line number is missing or printed as Line 0:0. Further investigation shows that Antlr 3.2 isn't able to report the correct line number and line offset. We need to address it in Pig code.

      The following is an example.

      grunt> A = load 'x' as (u, v, u, w);
      2011-03-21 10:04:44,486 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 0: Duplicated alias in schema: u

      It's desirable to have line number/offset in such kind of error messages.

      Attachments

        1. PIG-1925.patch
          56 kB
          Xuefu Zhang
        2. PIG-1925-1.patch
          58 kB
          Xuefu Zhang

        Activity

          People

            xuefuz Xuefu Zhang
            xuefuz Xuefu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: