Lyle created CALCITE-1395:
-----------------------------

             Summary: Unable to get table of Druid
                 Key: CALCITE-1395
                 URL: https://issues.apache.org/jira/browse/CALCITE-1395
             Project: Calcite
          Issue Type: Bug
          Components: druid
    Affects Versions: 1.9.0
         Environment: Druid 0.9.1.1 +  calcite 1.9.0
            Reporter: Lyle
            Assignee: Julian Hyde


- If a table does not exist, execute the 
CachingCalciteSchema.getImplicitTable() and caseSensitive = false, Will get an 
unexpected result。then throws a Exception:   
 java.sql.SQLException: Error while executing SQL "select count(*) as c from 
bbbbbb where __time = '1475043567605'": java.lang.IndexOutOfBoundsException: 
position (0) must be less than the number of elements that remained (0)  
        at org.apache.calcite.avatica.Helper.createException(Helper.java:56)  
        at org.apache.calcite.avatica.Helper.createException(Helper.java:41)  
        at 
org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:147)
  
        at 
org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:208)
  
        at TestCalciteDruid.main(TestCalciteDruid.java:57)  
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  
        at java.lang.reflect.Method.invoke(Method.java:606)  
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) 
 
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: 
java.lang.IndexOutOfBoundsException: position (0) must be less than the number 
of elements that remained (0)  
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2203)

- Why should query table information by coordinater node, instead of the broker 
node? coordinater node can not get table data of real-time node



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to