You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Josh Mahonin (JIRA)" <ji...@apache.org> on 2015/04/17 03:07:59 UTC

[jira] [Comment Edited] (PHOENIX-1877) Spark end2end tests are breaking the build

    [ https://issues.apache.org/jira/browse/PHOENIX-1877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14499082#comment-14499082 ] 

Josh Mahonin edited comment on PHOENIX-1877 at 4/17/15 1:07 AM:
----------------------------------------------------------------

It appears that commit e1bbb944126da52d14bf5df580167644a1cd8499 caused the PhoenixSparkIT tests to fail. The new ASL license at the top of setup.sql doesn't work properly with the way the test loads and and executes each line as a JDBC statement.

I've attached a patch that gets the test passing again by filtering on comments and blank lines in the setup.sql file.


was (Author: jmahonin):
It appears that commit e1bbb944126da52d14bf5df580167644a1cd8499 caused the PhoenixSparkIT tests to fail. The new ASL license at the top of setup.sql doesn't work properly with the way the setup.sql  file gets loaded and and executes each line as a JDBC statement.

I've attached a patch that gets the test passing again by filtering on comments and blank lines in the setup.sql file.

> Spark end2end tests are breaking the build
> ------------------------------------------
>
>                 Key: PHOENIX-1877
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1877
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: James Taylor
>            Assignee: maghamravikiran
>         Attachments: PHOENIX-1877.patch
>
>
> See below for the error. Maybe we should disable these tests until this can be sorted out?
> [31m*** RUN ABORTED *** [0m
>  [31m  java.util.concurrent.ExecutionException: org.apache.phoenix.exception.PhoenixParserException: ERROR 601 (42P00): Syntax error. Encountered "<EOF>" at line 1, column 62. [0m
>  [31m  at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) [0m
>  [31m  at java.util.concurrent.FutureTask.get(FutureTask.java:111) [0m
>  [31m  at org.scalatest.tools.ConcurrentDistributor.waitUntilDone(ConcurrentDistributor.scala:52) [0m
>  [31m  at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:2549) [0m
>  [31m  at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1044) [0m
>  [31m  at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1043) [0m
>  [31m  at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:2722) [0m
>  [31m  at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1043) [0m
>  [31m  at org.scalatest.tools.Runner$.main(Runner.scala:860) [0m
>  [31m  at org.scalatest.tools.Runner.main(Runner.scala) [0m
>  [31m  ... [0m
>  [31m  Cause: org.apache.phoenix.exception.PhoenixParserException: ERROR 601 (42P00): Syntax error. Encountered "<EOF>" at line 1, column 62. [0m
>  [31m  at org.apache.phoenix.exception.PhoenixParserException.newException(PhoenixParserException.java:33) [0m
>  [31m  at org.apache.phoenix.parse.SQLParser.parseStatement(SQLParser.java:111) [0m
>  [31m  at org.apache.phoenix.jdbc.PhoenixStatement$PhoenixStatementParser.parseStatement(PhoenixStatement.java:1005) [0m
>  [31m  at org.apache.phoenix.jdbc.PhoenixStatement.parseStatement(PhoenixStatement.java:1086) [0m
>  [31m  at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1149) [0m
>  [31m  at org.apache.phoenix.spark.PhoenixSparkIT$$anonfun$beforeAll$1.apply(PhoenixSparkIT.scala:80) [0m
>  [31m  at org.apache.phoenix.spark.PhoenixSparkIT$$anonfun$beforeAll$1.apply(PhoenixSparkIT.scala:78) [0m
>  [31m  at scala.collection.Iterator$class.foreach(Iterator.scala:727) [0m
>  [31m  at scala.collection.AbstractIterator.foreach(Iterator.scala:1157) [0m
>  [31m  at org.apache.phoenix.spark.PhoenixSparkIT.beforeAll(PhoenixSparkIT.scala:78) [0m
>  [31m  ... [0m
>  [31m  Cause: org.antlr.runtime.NoViableAltException: [0m
>  [31m  at org.apache.phoenix.parse.PhoenixSQLParser.oneStatement(PhoenixSQLParser.java:683) [0m
>  [31m  at org.apache.phoenix.parse.PhoenixSQLParser.statement(PhoenixSQLParser.java:474) [0m
>  [31m  at org.apache.phoenix.parse.SQLParser.parseStatement(SQLParser.java:108) [0m
>  [31m  at org.apache.phoenix.jdbc.PhoenixStatement$PhoenixStatementParser.parseStatement(PhoenixStatement.java:1005) [0m
>  [31m  at org.apache.phoenix.jdbc.PhoenixStatement.parseStatement(PhoenixStatement.java:1086) [0m
>  [31m  at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1149) [0m
>  [31m  at org.apache.phoenix.spark.PhoenixSparkIT$$anonfun$beforeAll$1.apply(PhoenixSparkIT.scala:80) [0m
>  [31m  at org.apache.phoenix.spark.PhoenixSparkIT$$anonfun$beforeAll$1.apply(PhoenixSparkIT.scala:78) [0m
>  [31m  at scala.collection.Iterator$class.foreach(Iterator.scala:727) [0m
>  [31m  at scala.collection.AbstractIterator.foreach(Iterator.scala:1157) [0m
>  [31m  ... [0m
> [



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)