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

PIPELINE commented on DRILL-4216:
---------------------------------

I am so sorry!
I just "!set verbose true",not "set `exec.errors.verbose`=true",
After I set is, the Error like this:
{color:red}
0: jdbc:drill:> select count(*) `count`,count(wi.cf1.q5) over() total from 
hbase.web_initial_20151223 wi group by wi.cf1.q5 limit 3;
Error: SYSTEM ERROR: IndexOutOfBoundsException: index: 0, length: 102516 
(expected: range(0, 32768))

Fragment 0:0

[Error Id: f811b575-d63e-4f2a-ab84-666cf162f2f8 on slave1.hadoop:31010]

  (java.lang.IndexOutOfBoundsException) index: 0, length: 102516 (expected: 
range(0, 32768))
    io.netty.buffer.AbstractByteBuf.checkIndex():1134
    io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes():250
    io.netty.buffer.WrappedByteBuf.setBytes():378
    io.netty.buffer.UnsafeDirectLittleEndian.setBytes():26
    io.netty.buffer.DrillBuf.setBytes():685
    org.apache.drill.exec.vector.UInt4Vector.reAlloc():219
    org.apache.drill.exec.vector.UInt4Vector$Mutator.setSafe():412
    org.apache.drill.exec.vector.VarBinaryVector$Mutator.setSafe():519
    
org.apache.drill.exec.vector.NullableVarBinaryVector$Mutator.fillEmpties():457
    
org.apache.drill.exec.vector.NullableVarBinaryVector$Mutator.setValueCount():568
    org.apache.drill.exec.test.generated.WindowFramerGen61.doWork():137
    
org.apache.drill.exec.physical.impl.window.WindowFrameRecordBatch.innerNext():177
    org.apache.drill.exec.record.AbstractRecordBatch.next():162
    org.apache.drill.exec.record.AbstractRecordBatch.next():119
    org.apache.drill.exec.record.AbstractRecordBatch.next():109
    org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext():51
    
org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext():132
    org.apache.drill.exec.record.AbstractRecordBatch.next():162
    org.apache.drill.exec.record.AbstractRecordBatch.next():119
    org.apache.drill.exec.record.AbstractRecordBatch.next():109
    org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext():51
    org.apache.drill.exec.physical.impl.limit.LimitRecordBatch.innerNext():115
    org.apache.drill.exec.record.AbstractRecordBatch.next():162
    org.apache.drill.exec.record.AbstractRecordBatch.next():119
    org.apache.drill.exec.record.AbstractRecordBatch.next():109
    org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext():51
    
org.apache.drill.exec.physical.impl.svremover.RemovingRecordBatch.innerNext():94
    org.apache.drill.exec.record.AbstractRecordBatch.next():162
    org.apache.drill.exec.record.AbstractRecordBatch.next():119
    org.apache.drill.exec.record.AbstractRecordBatch.next():109
    org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext():51
    
org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext():132
    org.apache.drill.exec.record.AbstractRecordBatch.next():162
    org.apache.drill.exec.physical.impl.BaseRootExec.next():104
    org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.innerNext():81
    org.apache.drill.exec.physical.impl.BaseRootExec.next():94
    org.apache.drill.exec.work.fragment.FragmentExecutor$1.run():256
    org.apache.drill.exec.work.fragment.FragmentExecutor$1.run():250
    java.security.AccessController.doPrivileged():-2
    javax.security.auth.Subject.doAs():415
    org.apache.hadoop.security.UserGroupInformation.doAs():1657
    org.apache.drill.exec.work.fragment.FragmentExecutor.run():250
    org.apache.drill.common.SelfCleaningRunnable.run():38
    java.util.concurrent.ThreadPoolExecutor.runWorker():1145
    java.util.concurrent.ThreadPoolExecutor$Worker.run():615
    java.lang.Thread.run():745 (state=,code=0)
{color}

> Aggregate Window Function COUNT() With GROUP BY Clause expected: range(0, 
> 32768)
> --------------------------------------------------------------------------------
>
>                 Key: DRILL-4216
>                 URL: https://issues.apache.org/jira/browse/DRILL-4216
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: 1.3.0
>         Environment: Hadoop-2.5.2
> Hbase-0.9.15
> Java-1.7.0_85
>            Reporter: PIPELINE
>            Assignee: Deneche A. Hakim
>
> *When column is row_key,it work well !*
> 0: jdbc:drill:> select count(row_key) over() from hbase.web_initial_20151222 
> wi group by row_key limit 3;
> +---------+
> | EXPR$0  |
> +---------+
> | 102906  |
> | 102906  |
> | 102906  |
> +---------+
> 3 rows selected (1.645 seconds)
> *When column is Hbase.Talbename.ColumnFamily.Qualify, and count(column) less 
> than 32768,it work well !*
> 0: jdbc:drill:> select count(wi.cf1.q5) over() from 
> hbase.web_initial_20151214 wi group by wi.cf1.q5 limit 3;
> +---------+
> | EXPR$0  |
> +---------+
> | 10383   |
> | 10383   |
> | 10383   |
> +---------+
> 3 rows selected (1.044 seconds)
> {color:red}
>     When column is Hbase.Talbename.ColumnFamily.Qualify, and count(column) 
> more than 32768,IndexOutOfBoundsException
> {color}
> 0: jdbc:drill:> select count(wi.cf1.q5) over() from 
> hbase.web_initial_20151222 wi group by wi.cf1.q5 limit 3;
> Error: SYSTEM ERROR: IndexOutOfBoundsException: index: 0, length: 62784 
> (expected: range(0, 32768))
> Fragment 0:0
> [Error Id: 77406a8a-8389-4f1b-af6c-d26d811379b7 on slave4.hadoop:31010] 
> (state=,code=0)
> java.sql.SQLException: SYSTEM ERROR: IndexOutOfBoundsException: index: 0, 
> length: 62784 (expected: range(0, 32768))
> Fragment 0:0
> [Error Id: 77406a8a-8389-4f1b-af6c-d26d811379b7 on slave4.hadoop:31010]
>       at 
> org.apache.drill.jdbc.impl.DrillCursor.nextRowInternally(DrillCursor.java:247)
>       at org.apache.drill.jdbc.impl.DrillCursor.next(DrillCursor.java:320)
>       at 
> net.hydromatic.avatica.AvaticaResultSet.next(AvaticaResultSet.java:187)
>       at 
> org.apache.drill.jdbc.impl.DrillResultSetImpl.next(DrillResultSetImpl.java:160)
>       at sqlline.IncrementalRows.hasNext(IncrementalRows.java:62)
>       at 
> sqlline.TableOutputFormat$ResizingRowsProvider.next(TableOutputFormat.java:87)
>       at sqlline.TableOutputFormat.print(TableOutputFormat.java:118)
>       at sqlline.SqlLine.print(SqlLine.java:1593)
>       at sqlline.Commands.execute(Commands.java:852)
>       at sqlline.Commands.sql(Commands.java:751)
>       at sqlline.SqlLine.dispatch(SqlLine.java:746)
>       at sqlline.SqlLine.begin(SqlLine.java:621)
>       at sqlline.SqlLine.start(SqlLine.java:375)
>       at sqlline.SqlLine.main(SqlLine.java:268)
> Caused by: org.apache.drill.common.exceptions.UserRemoteException: SYSTEM 
> ERROR: IndexOutOfBoundsException: index: 0, length: 62784 (expected: range(0, 
> 32768))
> Fragment 0:0
> [Error Id: 77406a8a-8389-4f1b-af6c-d26d811379b7 on slave4.hadoop:31010]
>       at 
> org.apache.drill.exec.rpc.user.QueryResultHandler.resultArrived(QueryResultHandler.java:118)
>       at 
> org.apache.drill.exec.rpc.user.UserClient.handleReponse(UserClient.java:112)
>       at 
> org.apache.drill.exec.rpc.BasicClientWithConnection.handle(BasicClientWithConnection.java:47)
>       at 
> org.apache.drill.exec.rpc.BasicClientWithConnection.handle(BasicClientWithConnection.java:32)
>       at org.apache.drill.exec.rpc.RpcBus.handle(RpcBus.java:69)
>       at org.apache.drill.exec.rpc.RpcBus$RequestEvent.run(RpcBus.java:400)
>       at 
> org.apache.drill.common.SerializedExecutor$RunnableProcessor.run(SerializedExecutor.java:105)
>       at 
> org.apache.drill.exec.rpc.RpcBus$SameExecutor.execute(RpcBus.java:264)
>       at 
> org.apache.drill.common.SerializedExecutor.execute(SerializedExecutor.java:142)
>       at 
> org.apache.drill.exec.rpc.RpcBus$InboundHandler.decode(RpcBus.java:298)
>       at 
> org.apache.drill.exec.rpc.RpcBus$InboundHandler.decode(RpcBus.java:269)
>       at 
> io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89)
>       at 
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
>       at 
> io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
>       at 
> io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:254)
>       at 
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
>       at 
> io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
>       at 
> io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
>       at 
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
>       at 
> io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
>       at 
> io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:242)
>       at 
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
>       at 
> io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
>       at 
> io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
>       at 
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
>       at 
> io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
>       at 
> io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:847)
>       at 
> io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:618)
>       at 
> io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:329)
>       at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:250)
>       at 
> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
>       at java.lang.Thread.run(Thread.java:745)



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

Reply via email to