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

        Alan Gates made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Olga Natkovich made changes -
        Fix Version/s 0.1.0 [ 12312848 ]
        Benjamin Reed made changes -
        Resolution Fixed [ 1 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Pi Song made changes -
        Attachment PIG-123_escape_char.patch [ 12376706 ]
        Pi Song made changes -
        Attachment Pig123_EscapeCharSupport.patch [ 12377160 ]
        Pi Song made changes -
        Attachment pig_escape_patch1.patch [ 12376624 ]
        Pi Song made changes -
        Nigel Daley made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Owen O'Malley made changes -
        Workflow jira [ 12424452 ] no-reopen-closed, patch-avail [ 12425429 ]
        Pi Song made changes -
        Assignee Pi Song [ pi_song ]
        Benjamin Francisoud made changes -
        Patch Info [Patch Available]
        Pi Song made changes -
        Attachment Pig123_EscapeCharSupport.patch [ 12377160 ]
        Olga Natkovich made changes -
        Patch Info [Patch Available]
        Olga Natkovich made changes -
        Patch Info [Patch Available]
        Pi Song made changes -
        Attachment PIG-123_escape_char.patch [ 12376706 ]
        Pi Song made changes -
        Field Original Value New Value
        Attachment pig_escape_patch1.patch [ 12376624 ]
        andrei badulescu created 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