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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.1.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: