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

Replacing backslash fails as lexical error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.11.2, 0.12.1, 0.13.0, 0.14.0, 0.15.0
    • Fix Version/s: 0.16.0
    • Component/s: parser
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Unable to find source-code formatter for language: title:test.pig. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      A = load 'input.txt' as (url:chararray);
      B = foreach A generate REPLACE(url, '\\\\', '') as url2:chararray;
      DUMP B;
      

      fails with

      2016-05-09 21:27:09,670 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Lexical error at line 4, column 0. Encountered: <EOF> after : ""

        Attachments

        1. pig-4889-v02.patch
          5 kB
          Koji Noguchi
        2. pig-4889-v01_notestcase.patch
          0.6 kB
          Koji Noguchi

          Issue Links

            Activity

              People

              • Assignee:
                knoguchi Koji Noguchi
                Reporter:
                knoguchi Koji Noguchi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: