Pig
  1. Pig
  2. PIG-123

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development