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

Bad error message when a double constant is incorrectly specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.7.0
    • 0.9.0
    • None
    • None

    Description

      Given the following Pig Latin script (notice that the exponent for the floating point is a floating point when it should be a integer)

      A = load '/Users/gates/test/data/studenttab10';
      B = foreach A generate $0, 3.0e10.1;
      dump B;
      

      Pig returns

       ERROR 2999: Unexpected internal error. For input string: "3.0e10.1"
      

      This should be a syntax error caught by the parser.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: