[
https://issues.apache.org/jira/browse/CALCITE-586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14349196#comment-14349196
]
Nick Dimiduk commented on CALCITE-586:
--------------------------------------
Hi folks, it appears this commit broke the build.
{noformat}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on
project calcite-core: Compilation failure: Compilation failure:
[ERROR]
/Users/ndimiduk/repos/incubator-calcite/core/src/main/java/org/apache/calcite/sql/parser/SqlParser.java:[24,42]
cannot find symbol
[ERROR] symbol: class SqlParserImpl
[ERROR] location: package org.apache.calcite.sql.parser.impl
[ERROR]
/Users/ndimiduk/repos/incubator-calcite/core/src/main/java/org/apache/calcite/sql/parser/SqlParser.java:[201,50]
cannot find symbol
[ERROR] symbol: variable SqlParserImpl
[ERROR] location: class org.apache.calcite.sql.parser.SqlParser.ConfigBuilder
{noformat}
According to git bisect:
{noformat}
$ git bisect start origin/master calcite-1.0.0-incubating
$ git bisect run mvn clean package -DskipTests
...
4b76c50d88c7524ef4c4a29a77cebcde8d317ca7 is the first bad commit
commit 4b76c50d88c7524ef4c4a29a77cebcde8d317ca7
Author: Julian Hyde <[email protected]>
Date: Sun Feb 8 14:30:41 2015 -0800
[CALCITE-586] Prevent JSON serialization of Signature.internalParameters
(Trevor Hartman)
(That should have been the commit message for the previous commit.)
Update history
Close apache/incubator-calcite#48
:040000 040000 9911637d375dea6e05ce1ef1cc548ec42b5971df
e2149323a2d7d47b3d86a35371f169a8d59bfadb M doc
bisect run success
{noformat}
> Serializing Signature.internalParameters can cause exceptions
> -------------------------------------------------------------
>
> Key: CALCITE-586
> URL: https://issues.apache.org/jira/browse/CALCITE-586
> Project: Calcite
> Issue Type: Bug
> Reporter: Trevor Hartman
> Assignee: Julian Hyde
> Priority: Minor
> Fix For: 1.1.0-incubating
>
>
> Observed exceptions:
> {code}
> java.lang.AssertionError: null
> at
> org.apache.calcite.rel.type.RelDataTypeImpl.getFieldList(RelDataTypeImpl.java:138)
> ~[calcite-core-1.0.0-incubating-SNAPSHOT.jar:1.0.0-incubating-SNAPSHOT]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_25]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[na:1.8.0_25]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[na:1.8.0_25]
> at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0_25]
> at
> com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:466)
> ~[jackson-databind-2.4.2.jar:2.4.2]
> {code}
> And in https://github.com/devth/calcite-map-demo:
> {code}
> java.lang.RuntimeException:
> com.fasterxml.jackson.databind.JsonMappingException: No serializer found for
> class org.apache.calcite.sql.type.SqlTypeExplicitPrecedenceList and no
> properties discovered to create BeanSerializer (to avoid exception, disable
> SerializationConfig.SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through
> reference chain:
> org.apache.calcite.avatica.remote.ResultSetResponse["signature"]->org.apache.calcite.avatica.Signature["internalParameters"]->java.util.LinkedHashMap["v0stashed"]->com.google.common.collect.RegularImmutableList[0]->org.apache.calcite.rex.RexCall["operands"]->com.google.common.collect.RegularImmutableList[0]->org.apache.calcite.rex.RexInputRef["type"]->org.apache.calcite.sql.type.MapSqlType["keyType"]->org.apache.calcite.sql.type.BasicSqlType["precedenceList"])
> at
> org.apache.calcite.avatica.remote.JsonHandler.handle(JsonHandler.java:61)
> ~[calcite-avatica-1.0.0-incubating.jar:1.0.0-incubating]
> at
> org.apache.calcite.avatica.remote.JsonHandler.apply(JsonHandler.java:46)
> ~[calcite-avatica-1.0.0-incubating.jar:1.0.0-incubating]
> at
> org.apache.calcite.avatica.server.AvaticaHandler.handle(AvaticaHandler.java:47)
> ~[calcite-avatica-server-1.0.0-incubating.jar:1.0.0-incubating]
> {code}
> Pull request:
> https://github.com/apache/incubator-calcite/pull/48
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)