eaba opened a new issue #6749: Cannot be cast to [B - presto connector URL: https://github.com/apache/pulsar/issues/6749 Given a byte[] field in a Schema, pulsar presto connector throws this exceptions even when presto identifies the column as varbinary ```` java.lang.ClassCastException: java.nio.HeapByteBuffer cannot be cast to [B 2020-04-16T18:53:25.559818923Z at org.apache.pulsar.sql.presto.PulsarRecordCursor.getSlice(PulsarRecordCursor.java:496) 2020-04-16T18:53:25.559823223Z at com.facebook.presto.$gen.CursorProcessor_20200416_185325_28.project_0(Unknown Source) 2020-04-16T18:53:25.559827723Z at com.facebook.presto.$gen.CursorProcessor_20200416_185325_28.process(Unknown Source) 2020-04-16T18:53:25.559832623Z at com.facebook.presto.operator.ScanFilterAndProjectOperator.processColumnSource(ScanFilterAndProjectOperator.java:237) 2020-04-16T18:53:25.559836923Z at com.facebook.presto.operator.ScanFilterAndProjectOperator.getOutput(ScanFilterAndProjectOperator.java:229) 2020-04-16T18:53:25.559848923Z at com.facebook.presto.operator.Driver.processInternal(Driver.java:373) 2020-04-16T18:53:25.559852723Z at com.facebook.presto.operator.Driver.lambda$processFor$8(Driver.java:282) 2020-04-16T18:53:25.559856623Z at com.facebook.presto.operator.Driver.tryWithLock(Driver.java:672) 2020-04-16T18:53:25.559860423Z at com.facebook.presto.operator.Driver.processFor(Driver.java:276) 2020-04-16T18:53:25.559864323Z at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:973) 2020-04-16T18:53:25.559868223Z at com.facebook.presto.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:162) 2020-04-16T18:53:25.559872323Z at com.facebook.presto.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:477) 2020-04-16T18:53:25.559876423Z at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 2020-04-16T18:53:25.559880323Z at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 2020-04-16T18:53:25.559884223Z at java.lang.Thread.run(Thread.java:748) ````
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
