Noemi Pap-Takacs has submitted this change and it was merged. ( 
https://gerrit.cloudera.org/25457 )

Change subject: IMPALA-12667: Document interoperability of tables converted to 
Iceberg
......................................................................

IMPALA-12667: Document interoperability of tables converted to Iceberg

ALTER TABLE ... CONVERT TO ICEBERG reuses the existing data files, so a
converted table keeps Parquet files that Impala wrote without the UTF-8
annotation on STRING columns (the default before Impala 5.0, or when
PARQUET_ANNOTATE_STRINGS_UTF8=false). Such columns can also hold bytes
that are not valid UTF-8, because Impala does not validate unannotated
values. The Iceberg spec requires both the annotation and UTF-8
encoding, so other engines might fail to read the converted table.

This change documents the issue in the "Converting existing tables to
Iceberg tables" section and describes CREATE TABLE AS SELECT as a
workaround, including how to find invalid rows with IS_VALID_UTF8() and
how to keep non-UTF-8 data by casting to BINARY.

Testing:
- Validated the documented behavior on a local cluster: converted a
  Parquet table written with PARQUET_ANNOTATE_STRINGS_UTF8=false,
  inspected the Parquet footers, read the table with Impala, the
  Iceberg Java generic reader and PyIceberg, and checked the CTAS,
  IS_VALID_UTF8() and BINARY cast workarounds.
- Built the asf-site-html docs without errors or warnings.

Change-Id: Ib703362f86434ed1456603196f3679147731da81
Assisted-by: Claude Opus 5.5 (OpenCode)
Reviewed-on: https://gerrit.cloudera.org/25457
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Noemi Pap-Takacs <[email protected]>
---
M docs/topics/impala_iceberg.xml
1 file changed, 31 insertions(+), 0 deletions(-)

Approvals:
  Impala Public Jenkins: Verified
  Noemi Pap-Takacs: Looks good to me, approved

--
To view, visit https://gerrit.cloudera.org/25457
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib703362f86434ed1456603196f3679147731da81
Gerrit-Change-Number: 25457
Gerrit-PatchSet: 2
Gerrit-Owner: Peter Rozsa <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Noemi Pap-Takacs <[email protected]>
Gerrit-Reviewer: Peter Rozsa <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>

Reply via email to