Presto Internal Error: java.lang.IndexOutOfBoundsException: end index (8) must not be greater than size (6)

1,237 views
Skip to first unread message

shahab

unread,
May 17, 2017, 7:54:21 AM5/17/17
to presto...@googlegroups.com
Hello,

We are facing the following internal error exception while running a SQL in Presto 0.170.

Does any one have any idea how to resolve this?

best,
Shahab

java.lang.IndexOutOfBoundsException: end index (8) must not be greater than size (6)
	at io.airlift.slice.Preconditions.checkPositionIndexes(Preconditions.java:81)
	at io.airlift.slice.Slice.checkIndexLength(Slice.java:1237)
	at io.airlift.slice.Slice.getLong(Slice.java:454)
	at com.facebook.presto.spi.block.AbstractVariableWidthBlock.getLong(AbstractVariableWidthBlock.java:62)
	at com.facebook.presto.spi.block.LazyBlock.getLong(LazyBlock.java:77)
	at com.facebook.presto.spi.type.AbstractLongType.getLong(AbstractLongType.java:54)
	at com_facebook_presto_$gen_PageProcessor_58.project_1(Unknown Source)
	at com_facebook_presto_$gen_PageProcessor_58.process(Unknown Source)
	at com.facebook.presto.operator.ScanFilterAndProjectOperator.getOutput(ScanFilterAndProjectOperator.java:277)
	at com.facebook.presto.operator.Driver.processInternal(Driver.java:303)
	at com.facebook.presto.operator.Driver.lambda$processFor$6(Driver.java:234)
	at com.facebook.presto.operator.Driver.tryWithLock(Driver.java:537)
	at com.facebook.presto.operator.Driver.processFor(Driver.java:229)
	at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:622)
	at com.facebook.presto.execution.TaskExecutor$PrioritizedSplitRunner.process(TaskExecutor.java:624)
	at com.facebook.presto.execution.TaskExecutor$Runner.run(TaskExecutor.java:776)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Wallin, Christina A

unread,
May 17, 2017, 10:11:49 AM5/17/17
to presto...@googlegroups.com

Shahab,

 

What is the query that you ran? We’ll probably also need to know the schema of the table.

 

Christina

--
You received this message because you are subscribed to the Google Groups "Presto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to presto-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Haozhun Jin

unread,
May 17, 2017, 3:00:51 PM5/17/17
to presto...@googlegroups.com

Blocks that stores `long` types (`BIGINT` and some date/time types) always has a length which is a multiple of 8. In addition, FixedWidthBlock or LongArrayBlock is generally used instead of VariableWidthBlock.

 

As a result, the cause of your failure is likely a mess-up of column order/type. Therefore, in order to investigate, we need details about the file you query is trying to read.

Reply all
Reply to author
Forward
0 new messages