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

Hanifi Gunes commented on DRILL-1605:
-------------------------------------

Unit test is added but ignored until DRILL-2171 is fixed.
{code}
java.lang.IndexOutOfBoundsException: index: 0, length: 1 (expected: range(0, 0))
        at io.netty.buffer.DrillBuf.checkIndexD(DrillBuf.java:156)
        at io.netty.buffer.DrillBuf.chk(DrillBuf.java:178)
        at io.netty.buffer.DrillBuf.getByte(DrillBuf.java:673)
        at 
org.apache.drill.exec.vector.UInt1Vector$Accessor.get(UInt1Vector.java:309)
        at 
org.apache.drill.exec.vector.NullableBitVector$Accessor.isSet(NullableBitVector.java:342)
        at 
org.apache.drill.exec.vector.NullableBitVector$Accessor.isNull(NullableBitVector.java:338)
        at 
org.apache.drill.exec.vector.NullableBitVector$Accessor.getObject(NullableBitVector.java:359)
        at 
org.apache.drill.exec.vector.NullableBitVector$Accessor.getObject(NullableBitVector.java:315)
        at 
org.apache.drill.DrillTestWrapper.addToCombinedVectorResults(DrillTestWrapper.java:238)
        at org.apache.drill.DrillTestWra
{code}

> Sqlline JVM crashes if we query a directory of json files having different 
> schemas.
> -----------------------------------------------------------------------------------
>
>                 Key: DRILL-1605
>                 URL: https://issues.apache.org/jira/browse/DRILL-1605
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Client - JDBC
>    Affects Versions: 0.6.0
>            Reporter: Venkata krishnan Sowrirajan
>            Assignee: Hanifi Gunes
>            Priority: Critical
>             Fix For: 0.8.0
>
>         Attachments: DRILL-1605.1.patch.txt, DRILL-1605.2.patch.txt, 
> openjdk.log, oracle-jdk.log
>
>
> This "json" directory has 2 json files. If the 2 json files have different 
> schemas not the same structure, sqlline JVM crashes. I tried copying the same 
> file with different name and tried querying that worked fine.
> select * from `json`;
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f9bb418c425, pid=4858, tid=140307876988672
> #
> # JRE version: OpenJDK Runtime Environment (7.0_65-b17) (build 
> 1.7.0_65-mockbuild_2014_07_16_06_06-b00)
> # Java VM: OpenJDK 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 
> compressed oops)
> # Problematic frame:
> # J 544 C2 
> sqlline.SqlLine$Rows$Row.<init>(Lsqlline/SqlLine$Rows;ILjava/sql/ResultSet;)V 
> (218 bytes) @ 0x00007f9bb418c425 [0x00007f9bb418bfc0+0x465]
> #
> # Failed to write core dump. Core dumps have been disabled. To enable core 
> dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # /tmp/jvm-4858/hs_error.log
> #
> # If you would like to submit a bug report, please include
> # instructions on how to reproduce the bug and visit:
> #   http://icedtea.classpath.org/bugzilla
> #
> Aborted



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

Reply via email to