COUNT(*) on external Iceberg table fails — NullPointerException: Cannot invoke "java.lang.Long.longValue()" because StructLike.get(...) returned null #58045
Unanswered
pravatbiswas
asked this question in
A - General / Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Error Description
When running a simple query on an external Iceberg table through Doris (via Trino catalog integration), the query fails:
Query:
SELECT COUNT(1) FROM db.table_name;
Error:
SQL Error [1105] [HY000]: errCode = 2, detailMessage =
Cannot invoke "java.lang.Long.longValue()" because the return value of
"org.apache.iceberg.StructLike.get(int, java.lang.Class)" is null
This appears to be a NullPointerException triggered inside the Iceberg reader used by Doris/Trino, caused by a metadata or snapshot field that Doris expects to be non-null.
Can anyone pls help me in identifying the root cause and how to resolve this.
Beta Was this translation helpful? Give feedback.
All reactions