You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "kaixuanzhang123 (via GitHub)" <gi...@apache.org> on 2025/05/09 05:19:54 UTC

[I] [Bug] when object table metadata not null throw exception [paimon]

kaixuanzhang123 opened a new issue, #5584:
URL: https://github.com/apache/paimon/issues/5584

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.
   
   
   ### Paimon version
   
   paimon master branch, commit id: 3501fe405035c91251624d4d8d0a9a1207abf190
   
   ### Compute Engine
   
   flink 1.17
   
   ### Minimal reproduce step
   
   Execution statement throws exception, rootCauseMessage = FlinkSQLException: org.apache.flink.table.api.TableException: Fail to call the procedure. The reason is java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.paimon.data.BinaryString.
   	at org.apache.flink.table.planner.operations.PlannerCallProcedureOperation.invokeCallMethod(PlannerCallProcedureOperation.java:234)
   	at org.apache.flink.table.planner.operations.PlannerCallProcedureOperation.callProcedure(PlannerCallProcedureOperation.java:195)
   	at org.apache.flink.table.planner.operations.PlannerCallProcedureOperation.execute(PlannerCallProcedureOperation.java:117)
   	at org.apache.flink.table.api.internal.TableEnvironmentImpl.executeInternal(TableEnvironmentImpl.java:1720)
   	at org.apache.flink.table.gateway.service.operation.OperationExecutor.callOperation(OperationExecutor.java:613)
   	at org.apache.flink.table.gateway.service.operation.OperationExecutor.executeOperation(OperationExecutor.java:454)
   	at org.apache.flink.table.gateway.service.operation.OperationExecutor.lambda$executeStatement$1(OperationExecutor.java:228)
   	at java.security.AccessController.doPrivileged(Native Method)
   	at javax.security.auth.Subject.doAs(Subject.java:422)
   	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1899)
   	at org.apache.flink.table.gateway.service.context.SqlGatewaySecurityContext.runSecured(SqlGatewaySecurityContext.java:77)
   	at org.apache.flink.table.gateway.service.operation.OperationExecutor.executeStatement(OperationExecutor.java:208)
   	at org.apache.flink.table.gateway.service.operation.OperationExecutor.executeStatement(OperationExecutor.java:194)
   	at org.apache.flink.table.gateway.service.SqlGatewayServiceImpl.lambda$executeStatement$1(SqlGatewayServiceImpl.java:253)
   	at org.apache.flink.table.gateway.service.operation.OperationManager.lambda$submitOperation$1(OperationManager.java:133)
   	at org.apache.flink.table.gateway.service.operation.OperationManager$Operation.lambda$run$0(OperationManager.java:282)
   	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1147)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
   	at java.lang.Thread.run(Thread.java:834)
   Caused by: java.lang.reflect.InvocationTargetException
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.apache.flink.table.planner.operations.PlannerCallProcedureOperation.invokeCallMethod(PlannerCallProcedureOperation.java:225)
   	... 22 more
   Caused by: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.paimon.data.BinaryString
   	at org.apache.paimon.table.object.ObjectTable$ObjectTableImpl.refresh(ObjectTable.java:189)
   	at org.apache.paimon.flink.procedure.RefreshObjectTableProcedure.call(RefreshObjectTableProcedure.java:46)
   	... 27 more
   Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.paimon.data.BinaryString
   	at org.apache.paimon.data.GenericArray.getString(GenericArray.java:215)
   	at org.apache.paimon.arrow.writer.ArrowFieldWriters$StringWriter.doWrite(ArrowFieldWriters.java:97)
   	at org.apache.paimon.arrow.writer.ArrowFieldWriter.write(ArrowFieldWriter.java:82)
   	at org.apache.paimon.arrow.writer.ArrowFieldWriters$MapWriter.doWrite(ArrowFieldWriters.java:671)
   	at org.apache.paimon.arrow.writer.ArrowFieldWriter.write(ArrowFieldWriter.java:82)
   	at org.apache.paimon.arrow.vector.ArrowFormatWriter.write(ArrowFormatWriter.java:80)
   	at org.apache.paimon.arrow.vector.ArrowFormatCWriter.write(ArrowFormatCWriter.java:57)
   	at org.apache.paimon.format.common.writer.ArrowBundleWriter.addElement(ArrowBundleWriter.java:63)
   	at org.apache.paimon.io.SingleFileWriter.writeImpl(SingleFileWriter.java:127)
   	at org.apache.paimon.io.StatsCollectingSingleFileWriter.write(StatsCollectingSingleFileWriter.java:61)
   	at org.apache.paimon.io.RowDataFileWriter.write(RowDataFileWriter.java:79)
   	at org.apache.paimon.io.RowDataFileWriter.write(RowDataFileWriter.java:45)
   	at org.apache.paimon.io.RollingFileWriter.write(RollingFileWriter.java:80)
   	at org.apache.paimon.append.AppendOnlyWriter$DirectSinkWriter.write(AppendOnlyWriter.java:404)
   	at org.apache.paimon.append.AppendOnlyWriter.write(AppendOnlyWriter.java:161)
   	at org.apache.paimon.append.AppendOnlyWriter.write(AppendOnlyWriter.java:66)
   	at org.apache.paimon.operation.AbstractFileStoreWrite.write(AbstractFileStoreWrite.java:161)
   	at org.apache.paimon.table.sink.TableWriteImpl.writeAndReturn(TableWriteImpl.java:175)
   	at org.apache.paimon.table.sink.TableWriteImpl.write(TableWriteImpl.java:147)
   	at org.apache.paimon.table.object.ObjectRefresh.refresh(ObjectRefresh.java:52)
   	at org.apache.paimon.table.object.ObjectTable$ObjectTableImpl.refresh(ObjectTable.java:187)
   	... 28 more
   
   ### What doesn't meet your expectations?
   
   The program should not throw exception
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


-- 
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: issues-unsubscribe@paimon.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] when object table metadata not null throw exception [paimon]

Posted by "kaixuanzhang123 (via GitHub)" <gi...@apache.org>.
kaixuanzhang123 commented on issue #5584:
URL: https://github.com/apache/paimon/issues/5584#issuecomment-2865154407

   object table, When metadata is not empty, call sys.refresh_object_table this error can be reproduced


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] when object table metadata not null throw exception [paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi closed issue #5584: [Bug] when object table metadata not null throw exception
URL: https://github.com/apache/paimon/issues/5584


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org