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

Julian Hyde commented on CALCITE-1655:
--------------------------------------

[~bslim], I found another issue. The test fails on JDK 9. Can you take a look, 
please. Here's the output:

{noformat}
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.619 sec <<< 
FAILURE! - in org.apache.calcite.adapter.druid.DruidQueryFilterTest
testInFilter(org.apache.calcite.adapter.druid.DruidQueryFilterTest)  Time 
elapsed: 0.619 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class 
org.mockito.internal.creation.cglib.ClassImposterizer$3
        at 
org.apache.calcite.adapter.druid.DruidQueryFilterTest.testInFilter(DruidQueryFilterTest.java:52)

testBetweenFilterStringCase(org.apache.calcite.adapter.druid.DruidQueryFilterTest)
  Time elapsed: 0.618 sec  <<< ERROR!
java.lang.ExceptionInInitializerError
        at 
org.apache.calcite.adapter.druid.DruidQueryFilterTest.testBetweenFilterStringCase(DruidQueryFilterTest.java:81)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make 
protected final java.lang.Class 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed module @2cc3dec5
        at 
org.apache.calcite.adapter.druid.DruidQueryFilterTest.testBetweenFilterStringCase(DruidQueryFilterTest.java:81)

{noformat}

> Druid adapter: add IN filter
> ----------------------------
>
>                 Key: CALCITE-1655
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1655
>             Project: Calcite
>          Issue Type: Bug
>          Components: druid
>            Reporter: slim bouguerra
>            Assignee: slim bouguerra
>             Fix For: 1.12.0
>
>
> The druid calcite adapter throw an exception when an IN filter is used.
> This happens only in hive because in calcite project the IN filter is 
> transformed to OR automatically. 
> Since this rule does not kick in HIVE and it is better to use the native IN 
> filter from druid instead having huge number of OR clauses i will send a 
> patch that adds the IN filter.  



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to