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

QueryParserDriver.parseSchema(String) silently returns a wrong result when a comma is missing in the schema definition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • parser
    • None

    Description

      QueryParserDriver provides a convenient method to parse from string to LogicalSchema. But if a comma is missing between two fields in the schema definition, it silently returns a wrong result. For example,

      a:int b:long
      

      This string will be parsed up to "a:int", and "b:long" will be silently discarded. This should rather fail with a parser exception.

      Attachments

        1. PIG-3414.patch
          3 kB
          Cheolsoo Park
        2. PIG-3414-2.patch
          4 kB
          Cheolsoo Park
        3. PIG-3414-3.patch
          3 kB
          Cheolsoo Park
        4. PIG-3414-4.patch
          4 kB
          Cheolsoo Park
        5. PIG-3414-5.patch
          4 kB
          Cheolsoo Park
        6. PIG-3414-6.patch
          16 kB
          Cheolsoo Park

        Activity

          People

            cheolsoo Cheolsoo Park
            cheolsoo Cheolsoo Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: