[ 
https://issues.apache.org/jira/browse/BEAM-4425?focusedWorklogId=106827&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-106827
 ]

ASF GitHub Bot logged work on BEAM-4425:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/May/18 20:41
            Start Date: 29/May/18 20:41
    Worklog Time Spent: 10m 
      Work Description: kennknowles commented on a change in pull request 
#5503: [BEAM-4425] Force load JDBC drivers
URL: https://github.com/apache/beam/pull/5503#discussion_r191566793
 
 

 ##########
 File path: 
sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/impl/JdbcDriverTest.java
 ##########
 @@ -32,11 +32,17 @@
 import org.apache.beam.sdk.extensions.sql.mock.MockedBoundedTable;
 import org.apache.beam.sdk.schemas.Schema.TypeName;
 import org.apache.calcite.jdbc.CalciteConnection;
+import org.junit.Before;
 import org.junit.Test;
 
 /** Test for {@link JdbcDriver}. */
 public class JdbcDriverTest {
 
+  @Before
+  public void before() throws Exception {
+    Class.forName("org.apache.beam.sdk.extensions.sql.impl.JdbcDriver");
 
 Review comment:
   TODO(me): when I am at the computers where it is broken, report my env to 
the JIRA.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 106827)
    Time Spent: 50m  (was: 40m)

> JDBC driver load errors :jdbc:calcite and :jdbc:beam
> ----------------------------------------------------
>
>                 Key: BEAM-4425
>                 URL: https://issues.apache.org/jira/browse/BEAM-4425
>             Project: Beam
>          Issue Type: Bug
>          Components: dsl-sql
>            Reporter: Kenneth Knowles
>            Assignee: Kenneth Knowles
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> These have different causes but the same fix - force load the JDBC driver 
> before it is used or otherwise factor code so it is not possible to hit this.



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

Reply via email to