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

cannot escape single quotes in single quoted strings when using the eq or match operator

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      a query like this :

      filter c by ( c.string eq 'hell\'s angels' OR c.string eq 'blue\'s clues')

      generates an error with the pig parser, because the parser does not allow single quotes (') within single quotes, even if they are escaped with a backslash.

        Attachments

          Activity

            People

            • Assignee:
              pi_song Pi Song
              Reporter:
              andreib andrei badulescu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: