You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "forLp811 (via GitHub)" <gi...@apache.org> on 2026/08/18 02:58:54 UTC
[I] [Improvement] IcebergRewriteDataFilesJob Array index out of bounds error [gravitino]
forLp811 opened a new issue, #12479:
URL: https://github.com/apache/gravitino/issues/12479
### What would you like to be improved?
iceberg version:1.4.3
gravitino version:1.3.0
I created a template task for merging small files using iceberg. The small files were successfully merged, but when gravitino attempted to obtain the results, it reported an error. Eventually, the task on the web interface also showed as "failed".
<img width="1783" height="748" alt="Image" src="https://github.com/user-attachments/assets/865fd757-862f-4244-ae5f-f7fa4140e322" />
<img width="1274" height="831" alt="Image" src="https://github.com/user-attachments/assets/a803a420-e8b2-4f09-a7e0-aa41a6aa1f30" />
<img width="1680" height="440" alt="Image" src="https://github.com/user-attachments/assets/5437890b-1fdd-43c5-b083-14e8be2aec49" />
The iceberg Low version is recommended for adaptation.
### How should we improve?
example:
# IcebergRewriteDataFilesJob.java L176-201
if (results.length > 0) {
Row result = results[0];
int size = result.size();
// Iceberg rewrite_data_files return schema varies by version:
// 1.4.x -> 3 columns (rewritten, added, rewritten_bytes)
// 1.5+/1.6+ -> 4 columns (adds failed_data_files)
// newer -> 5 columns (adds removed_delete_files)
// Print only the columns actually present to stay compatible with all versions.
StringBuilder sb = new StringBuilder("Rewrite Data Files Results:\n");
if (size > 0) {
sb.append(" Rewritten data files: ").append(result.getInt(0)).append("\n");
}
if (size > 1) {
sb.append(" Added data files: ").append(result.getInt(1)).append("\n");
}
if (size > 2) {
sb.append(" Rewritten bytes: ").append(result.getLong(2)).append("\n");
}
if (size > 3) {
sb.append(" Failed data files: ").append(result.getInt(3)).append("\n");
}
if (size > 4) {
sb.append(" Removed delete files: ").append(result.getInt(4)).append("\n");
}
System.out.print(sb);
}
--
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: commits-unsubscribe@gravitino.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] IcebergRewriteDataFilesJob Array index out of bounds error [gravitino]
Posted by "lasdf1234 (via GitHub) via commits" <co...@gravitino.apache.org>.
lasdf1234 closed issue #12479: [Improvement] IcebergRewriteDataFilesJob Array index out of bounds error
URL: https://github.com/apache/gravitino/issues/12479
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] IcebergRewriteDataFilesJob Array index out of bounds error [gravitino]
Posted by "lasdf1234 (via GitHub) via commits" <co...@gravitino.apache.org>.
lasdf1234 commented on issue #12479:
URL: https://github.com/apache/gravitino/issues/12479#issuecomment-6760590522
Thanks for the report.
We will **not** specially support Iceberg **1.4.x** for the built-in rewrite-data-files job (including the 3-column `rewrite_data_files` result shape).
Gravitino’s Iceberg / TMS path is aligned with a much newer Iceberg line (currently **1.11** for the server and the documented `iceberg-spark-runtime` reference). On top of that, newer Iceberg features we are taking on — notably **column default values** such as Iceberg’s `initial-default` / `write-default` (Gravitino’s `initDefaultValue` direction), which require **Iceberg 1.10+** — make keeping a 1.4-compatible jobs surface even less realistic.
Please run the built-in maintenance jobs with an Iceberg runtime that matches the documented / supported version (currently 1.11.x), rather than 1.4.3. After upgrading, the successful rewrite should no longer be reported as failed solely because of the older 3-column result schema.
If you still see a failure on a supported Iceberg version, feel free to reopen with the Iceberg / Spark versions and the full stack trace.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] IcebergRewriteDataFilesJob Array index out of bounds error [gravitino]
Posted by "lasdf1234 (via GitHub) via commits" <co...@gravitino.apache.org>.
lasdf1234 commented on issue #12479:
URL: https://github.com/apache/gravitino/issues/12479#issuecomment-6760591014
Closing as not planned: Iceberg 1.4 is outside the supported jobs runtime; please upgrade to the documented Iceberg version (currently 1.11).
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org