[
https://issues.apache.org/jira/browse/CALCITE-1981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16163410#comment-16163410
]
Julian Hyde commented on CALCITE-1981:
--------------------------------------
Ah, even better, a build error:
{code}
$ mvn -pl cassandra -Pit clean test
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Calcite Cassandra 1.14.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ calcite-cassandra
---
[INFO] Deleting /home/jhyde/open1/calcite.4/cassandra/target
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ calcite-cassandra ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- build-helper-maven-plugin:1.9:add-resource (add-resource) @
calcite-cassandra ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.9:add-test-resource (add-resource) @
calcite-cassandra ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles)
@ calcite-cassandra ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
calcite-cassandra ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/jhyde/open1/calcite.4/cassandra/src/main/resources
[INFO] Copying 2 resources to META-INF
[INFO] Copying 1 resource to META-INF
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
calcite-cassandra ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to
/home/jhyde/open1/calcite.4/cassandra/target/classes
[INFO]
/home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java:
/home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java
uses unchecked or unsafe operations.
[INFO]
/home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java:
Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java:[118,29]
cannot find symbol
symbol: class Builder
location: interface org.apache.calcite.rel.type.RelDataTypeFactory
[ERROR]
/home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraSchema.java:[137,29]
cannot find symbol
symbol: class Builder
location: interface org.apache.calcite.rel.type.RelDataTypeFactory
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.057 s
[INFO] Finished at: 2017-09-12T11:19:32-08:00
[INFO] Final Memory: 35M/469M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile)
on project calcite-cassandra: Compilation failure: Compilation failure:
[ERROR]
/home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraTable.java:[118,29]
cannot find symbol
[ERROR] symbol: class Builder
[ERROR] location: interface org.apache.calcite.rel.type.RelDataTypeFactory
[ERROR]
/home/jhyde/open1/calcite.4/cassandra/src/main/java/org/apache/calcite/adapter/cassandra/CassandraSchema.java:[137,29]
cannot find symbol
[ERROR] symbol: class Builder
[ERROR] location: interface org.apache.calcite.rel.type.RelDataTypeFactory
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
{code}
> Cassandra adapter fails
> -----------------------
>
> Key: CALCITE-1981
> URL: https://issues.apache.org/jira/browse/CALCITE-1981
> Project: Calcite
> Issue Type: Bug
> Components: cassandra, core
> Affects Versions: 1.14.0
> Reporter: Michael Mior
> Assignee: Julian Hyde
> Fix For: 1.14.0
>
>
> Cassandra integration tests currently fail as a result of
> [CALCITE-1929|https://issues.apache.org/jira/browse/CALCITE-1929].
> {noformat}
> testMaterializedView(org.apache.calcite.test.CassandraAdapterIT) Time
> elapsed: 0.605 sec <<< ERROR!
> java.lang.NoClassDefFoundError:
> org/apache/calcite/rel/type/RelDataTypeFactory$Builder
> at
> org.apache.calcite.adapter.cassandra.CassandraSchemaFactory.create(CassandraSchemaFactory.java:40)
> at org.apache.calcite.model.ModelHandler.visit(ModelHandler.java:214)
> at
> org.apache.calcite.model.JsonCustomSchema.accept(JsonCustomSchema.java:45)
> at org.apache.calcite.model.ModelHandler.visit(ModelHandler.java:143)
> at org.apache.calcite.model.ModelHandler.<init>(ModelHandler.java:85)
> at org.apache.calcite.jdbc.Driver$1.onConnectionInit(Driver.java:104)
> at
> org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:139)
> at java.sql.DriverManager.getConnection(DriverManager.java:664)
> at java.sql.DriverManager.getConnection(DriverManager.java:208)
> at
> org.apache.calcite.test.CalciteAssert$MapConnectionFactory.createConnection(CalciteAssert.java:1156)
> at
> org.apache.calcite.test.CalciteAssert$AssertQuery.createConnection(CalciteAssert.java:1195)
> at
> org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1266)
> at
> org.apache.calcite.test.CalciteAssert$AssertQuery.explainMatches(CalciteAssert.java:1356)
> at
> org.apache.calcite.test.CalciteAssert$AssertQuery.explainContains(CalciteAssert.java:1351)
> at
> org.apache.calcite.test.CassandraAdapterIT.testMaterializedView(CassandraAdapterIT.java:167)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at
> org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:393)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.calcite.rel.type.RelDataTypeFactory$Builder
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 33 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)