Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the column name of the Iceberg metadata file record is an uppercase field, executing ANALYZE TABLE will report that the column cannot be found. #14583

Closed
zhengxingmao opened this issue Oct 12, 2022 · 0 comments · Fixed by #14585
Assignees
Labels
bug Something isn't working

Comments

@zhengxingmao
Copy link

zhengxingmao commented Oct 12, 2022

Flink SQL create iceberg table with an uppercase column name:

create table b (B int) ;

and Trino which version I used is v397 executes ANALYZE b,met this error.

Query 20221012_053136_00006_fw48v failed: Column not found in table: [b]
com.google.common.base.VerifyException: Column not found in table: [b]
	at com.google.common.base.Verify.verifyNotNull(Verify.java:503)
	at io.trino.plugin.iceberg.IcebergMetadata.finishStatisticsCollection(IcebergMetadata.java:1538)
	at io.trino.plugin.base.classloader.ClassLoaderSafeConnectorMetadata.finishStatisticsCollection(ClassLoaderSafeConnectorMetadata.java:166)
	at io.trino.metadata.MetadataManager.finishStatisticsCollection(MetadataManager.java:812)
	at io.trino.sql.planner.LocalExecutionPlanner$Visitor.lambda$visitStatisticsWriterNode$44(LocalExecutionPlanner.java:3218)
	at io.trino.operator.StatisticsWriterOperator.getOutput(StatisticsWriterOperator.java:133)
	at io.trino.operator.Driver.processInternal(Driver.java:411)
	at io.trino.operator.Driver.lambda$process$10(Driver.java:314)
	at io.trino.operator.Driver.tryWithLock(Driver.java:706)
	at io.trino.operator.Driver.process(Driver.java:306)
	at io.trino.operator.Driver.processForDuration(Driver.java:277)
	at io.trino.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:736)
	at io.trino.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:164)
	at io.trino.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:515)
	at io.trino.$gen.Trino_397____20221011_085503_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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

1 participant