cbwn123 opened a new issue, #9:
URL: https://github.com/apache/incubator-paimon-trino/issues/9
paimon version : 0.5
trino version : 416
When I was executing the select statement, this exception occurred. I added
some exception traps myself and output some information.
I found that the size in the VariableWidthBlockBuilder class will exceed the
maximum value of int and become negative.
io.trino.spi.TrinoException:
org.apache.paimon.table.source.KeyValueTableRead$RowDataRecordReader
at
org.apache.paimon.trino.TrinoPageSourceBase.nextPage(TrinoPageSourceBase.java:141)
at
org.apache.paimon.trino.TrinoPageSourceBase.lambda$getNextPage$0(TrinoPageSourceBase.java:114)
at
org.apache.paimon.trino.ClassLoaderUtils.runWithContextClassLoader(ClassLoaderUtils.java:30)
at
org.apache.paimon.trino.TrinoPageSourceBase.getNextPage(TrinoPageSourceBase.java:112)
at
io.trino.operator.TableScanOperator.getOutput(TableScanOperator.java:301)
at io.trino.operator.Driver.processInternal(Driver.java:402)
at io.trino.operator.Driver.lambda$process$8(Driver.java:305)
at io.trino.operator.Driver.tryWithLock(Driver.java:701)
at io.trino.operator.Driver.process(Driver.java:297)
at io.trino.operator.Driver.processForDuration(Driver.java:268)
at
io.trino.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:888)
at
io.trino.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:187)
at
io.trino.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:561)
at io.trino.$gen.Trino_416____20230609_030235_2.run(Unknown Source)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: io.trino.spi.TrinoException:
VariableWidthBlockBuilder{positionCount=54228272, size=2147483624}
Slice length :173,Slice value :资产计算状态为:1000,资产对effDate字段进行补充数据:Thu Oct 22
19:51:18 CST 2020,资产对expDate字段进行补充数据:Wed Jan 01 00:00:00 CST 3000,
at
org.apache.paimon.trino.TrinoPageSourceBase.writeSlice(TrinoPageSourceBase.java:215)
at
org.apache.paimon.trino.TrinoPageSourceBase.appendTo(TrinoPageSourceBase.java:193)
at
org.apache.paimon.trino.TrinoPageSourceBase.nextPage(TrinoPageSourceBase.java:134)
... 16 more
Caused by: java.lang.IndexOutOfBoundsException: end index (-2147483499) must
not be negative
at
io.airlift.slice.Preconditions.checkPositionIndexes(Preconditions.java:81)
at io.airlift.slice.Slice.checkIndexLength(Slice.java:1301)
at io.airlift.slice.Slice.setBytes(Slice.java:788)
at
io.airlift.slice.DynamicSliceOutput.writeBytes(DynamicSliceOutput.java:152)
at
io.trino.spi.block.VariableWidthBlockBuilder.writeBytes(VariableWidthBlockBuilder.java:244)
at io.trino.spi.type.VarcharType.writeSlice(VarcharType.java:220)
at io.trino.spi.type.VarcharType.writeSlice(VarcharType.java:214)
at
org.apache.paimon.trino.TrinoPageSourceBase.writeSlice(TrinoPageSourceBase.java:212)
... 18 more
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]