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

recent regression wrt FrontendException: ERROR 1000

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      i recently svn up'd http://svn.apache.org/repos/asf/pig/branches/branch-0.9 and rebuilt and tested the Antispam pig loader against the new 0.9.1 jar ensure everything is fine.
      this was working previously.. when the build version for the branch was 0.9.0

      currently not working at Revision: 1145388

      it's not, and i'm a bit confused, so hopefully someone can help me out:

      contents of ./target/surefire-reports/TEST-com.XTest.xml:

      ..
      <error message="Error during parsing. <line 1, column 113> mismatched input '(' expecting SEMI_COLON" type="org.apache.pig.impl.logicalLayer.FrontendException">org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1000: Error during parsing. <line 1, column 113> mismatched input '(' expecting SEMI_COLON
      at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1638)
      at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1583)
      at org.apache.pig.PigServer.registerQuery(PigServer.java:583)
      at org.apache.pig.PigServer.registerQuery(PigServer.java:596)
      at com...XTest.testLoadData(XTest.java:74)
      ..

      that test code method looks like this:

          @SuppressWarnings("unchecked")
          @Test
          public void testLoadData() throws Exception {
      ...
              PigServer pigServer = new PigServer(ExecType.LOCAL);
              pigServer.registerQuery("A = load 'file:" + Util.encodeEscape(f.getAbsolutePath()) + "' using com.Storage(" +
                                      "'a, b, c, d, e, f, g, h, i'" +
                                      ") as (a:chararray, b:long, c:chararray, d:chararray, e:int, f:chararray, g:int, h:int, i:int);");
      ...    }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              woody.anderson@gmail.com Woody Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: