beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Pilloud (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-3386) Dependency conflict when Calcite is included in a project.
Date Tue, 24 Jul 2018 16:58:00 GMT

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

Andrew Pilloud commented on BEAM-3386:
--------------------------------------

Good to know this still exists. Looks like calcite isn't easily repackageable. This issue
can be fixed either in our shading (by also rewriting the "jdbc:calcite:" string when we shade
calcite) or in calcite (by not using the driver manager to connect between calcite modules).

> Dependency conflict when Calcite is included in a project.
> ----------------------------------------------------------
>
>                 Key: BEAM-3386
>                 URL: https://issues.apache.org/jira/browse/BEAM-3386
>             Project: Beam
>          Issue Type: Bug
>          Components: dsl-sql
>    Affects Versions: 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0
>            Reporter: Austin Haas
>            Priority: Critical
>
> When Calcite (v. 1.13.0) is included in a project that also includes Beam and the Beam
SQL extension, then the following error is thrown when trying to run Beam code.
> ClassCastException org.apache.beam.sdk.extensions.sql.impl.planner.BeamRelDataTypeSystem
cannot be cast to org.apache.calcite.rel.type.RelDataTypeSystem
>     org.apache.calcite.jdbc.CalciteConnectionImpl.<init> (CalciteConnectionImpl.java:120)
>     org.apache.calcite.jdbc.CalciteJdbc41Factory$CalciteJdbc41Connection.<init>
(CalciteJdbc41Factory.java:114)
>     org.apache.calcite.jdbc.CalciteJdbc41Factory.newConnection (CalciteJdbc41Factory.java:59)
>     org.apache.calcite.jdbc.CalciteJdbc41Factory.newConnection (CalciteJdbc41Factory.java:44)
>     org.apache.calcite.jdbc.CalciteFactory.newConnection (CalciteFactory.java:53)
>     org.apache.calcite.avatica.UnregisteredDriver.connect (UnregisteredDriver.java:138)
>     java.sql.DriverManager.getConnection (DriverManager.java:664)
>     java.sql.DriverManager.getConnection (DriverManager.java:208)
>     org.apache.beam.sdks.java.extensions.sql.repackaged.org.apache.calcite.tools.Frameworks.withPrepare
(Frameworks.java:145)
>     org.apache.beam.sdks.java.extensions.sql.repackaged.org.apache.calcite.tools.Frameworks.withPlanner
(Frameworks.java:106)
>     org.apache.beam.sdks.java.extensions.sql.repackaged.org.apache.calcite.prepare.PlannerImpl.ready
(PlannerImpl.java:140)
>     org.apache.beam.sdks.java.extensions.sql.repackaged.org.apache.calcite.prepare.PlannerImpl.parse
(PlannerImpl.java:170)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message