<@U0A71G31CDV> does starrocks support Iceberg v3?
# questions-and-troubleshooting
n
@Rocky does starrocks support Iceberg v3?
r
Partially — since 4.1, but not full v3 support. • 4.1: the 4.1 release notes list "Iceberg v3 Support" as adding the default value feature and row lineage ([#69525], [#69633]). So a v3 table is readable as long as it doesn't use unsupported v3 features. • Deletion vectors (a v3 feature) are not supported on 4.1 — a query touching a data file with an attached deletion vector fails with
Iceberg V3 Deletion Vectors are not supported. Table contains deletion vector file: <path>
. There's no StarRocks-side switch; the deletion vectors have to be removed by the engine that wrote them. • 4.0 line: v3 tables are explicitly rejected (
... uses format version 3 which is not supported. Currently only Iceberg V1 and V2 are supported.
), with the check added in 4.0.7 so it fails early rather than mid-query. `DESC`/`SHOW CREATE TABLE` still work. • Known issue still open: v3 tables with
unknown
-typed fields (and some default-value / type-promotion cases) can fail or return wrong results; a fix is merged on branch-4.1 and branch-4.0 but, per the known-issues page, not yet released as of that page's date. • 3.5: the source-level notes don't establish what happens with v3 tables — I wouldn't assume it works. Practical takeaway: if you need reliable Iceberg reads/writes, keep tables at format-version 2; if you must use v3 on 4.1, avoid deletion vectors and
unknown
types. For the latest state of the 4.1 fixes, check the StarRocks releases page or ask in the community Slack. References • data_source/feature-support-data-lake-analytics.md • data_source/catalog/iceberg/iceberg.md • loading/loading_introduction/feature-support-loading-and-unloading.md • release_notes/release-4.1.md • knowledge/qa/iceberg_write_support.md (StarRocks knowledge base) • knowledge/known_issues/data_lake_external_catalog.md (StarRocks knowledge base)
n
@Rocky is the variant data type in v3 supported?
r
Partly — yes on 4.1+, but with limits, and the docs don't tie VARIANT to a format version explicitly. What the docs say: • Version: VARIANT for Iceberg is a 4.1 feature ("VARIANT Type for Semi-Structured Data in Iceberg", PRs #63639 / #66539). it's supported only for tables in Iceberg Catalog — StarRocks native tables can't use it. So also no on 4.0 / 3.5. • Where VARIANT is allowed to live: the VARIANT doc frames it as reading/writing Parquet with variant encoding — "VARIANT is supported for reading data from Iceberg tables in Parquet format with variant encoding, and for writing Parquet files using StarRocks file writers (unshredded variant encoding)." It never states a
format-version
requirement, so I can't confirm from the docs whether StarRocks keys off format-version or just off the Parquet column type. In practice, since variant is a v3 type and 4.0 rejects v3 tables outright (per the 4.0.7 gate), you'd need 4.1 to touch it at all. • Functions available: auto-detected variant columns,
variant_query
,
get_variant_int/string/bool/double
,
variant_typeof
, plus
CAST(json AS VARIANT)
and casting VARIANT back to scalar/STRUCT/MAP/ARRAY. • Limitations that will bite you: • only unshredded variant values are supported for both read and write — so variant columns written with shredding by another engine are not read correctly • a VARIANT value is capped at 16 MB • ORC is out; Parquet only • Separate related gotcha from the known-issues page: v3 tables with
unknown
-typed fields can fail or return wrong results, with the fix merged on branch-4.1 / branch-4.0 but not yet released as of that page's date. If you need shredded variant or non-Parquet, I'd verify current status against the releases page or ask in community Slack before relying on it. References • sql-reference/data-types/semi_structured/VARIANT.md • release_notes/release-4.1.md • data_source/catalog/iceberg/iceberg_meta_table.md • knowledge/qa/iceberg_write_support.md (StarRocks knowledge base) • knowledge/known_issues/data_lake_external_catalog.md (StarRocks knowledge base) References • sql-reference/data-types/semi_structured/VARIANT.md • knowledge/known_issues/data_lake_external_catalog.md (StarRocks knowledge base) • release_notes/release-4.1.md • data_source/catalog/iceberg/iceberg.md • sql-reference/sql-functions/variant-functions/variant_typeof.md • data_source/catalog/maxcompute_catalog.md
n
@Rocky using
4.0.8-2090bfc
I got this error for a v3 table
Copy code
starrocks error: Getting analyzing error. Detail message: Datatype of external table column [payload] is not supported!.
can you tell me the minumum version what support variant?
r
Minimum is 4.1.0. The VARIANT doc states plainly: "From v4.1 onwards, StarRocks supports the VARIANT data type for querying semi-structured data from Iceberg tables in Parquet format," and the 4.1.0 release notes list "VARIANT Type for Semi-Structured Data in Iceberg" as a new 4.1.0 feature (PRs #63639, #66539). There is no mention of any backport to the 4.0 or 3.5 lines, so I'd treat 4.0.8 as not having it at all. That lines up with your error:
Datatype of external table column [payload] is not supported!
is an analyzer-level failure — the 4.0.8 FE has no mapping for the v3 VARIANT-encoded
payload
column type, so analysis dies before it ever tries to read data. Caveats worth knowing once you're on 4.1: • VARIANT is supported only for Iceberg Catalog tables, not StarRocks native tables. • Unshredded variant encoding only, for both read and write (per the doc's limitations section). • VARIANT values capped at 16 MB; Parquet only (no ORC). • Separate known issue on the v3 side: columns with
unknown
-typed fields can fail or return wrong results, with the fix merged on branch-4.1 but not yet released as of that page's date. If your table mixes VARIANT with other v3-only types, verify against the releases page. If you want certainty for a specific 4.0.x or 4.1.x patch build, the release notes / release page are the authoritative check. References • sql-reference/data-types/semi_structured/VARIANT.md • release_notes/release-4.1.md • knowledge/known_issues/data_lake_external_catalog.md (StarRocks knowledge base) References • sql-reference/data-types/semi_structured/VARIANT.md • release_notes/release-4.1.md • sql-reference/sql-functions/variant-functions/variant_typeof.md • data_source/file_external_table.md • data_source/External_table.md • data_source/feature-support-data-lake-analytics.md
n
@Rocky what is the latest table version of starrocks?
r
Two readings — I'll cover both: If you mean Iceberg table format-version: the highest StarRocks can handle is 3, and only from 4.1 onwards (4.0 explicitly rejects v3; 3.5 has no such check documented). v3 support on 4.1 is partial: column defaults and row lineage work (
_row_id
,
_last_updated_sequence_number
on v3 tables), but deletion vectors fail (
Iceberg V3 Deletion Vectors are not supported...
). I found no mention anywhere in the docs of format-version 4, so I'd treat anything above 3 as unsupported — but I can't prove a negative from the docs alone; check the releases page if that matters. If you mean the latest StarRocks product version: the newest one in the docs I can see is 4.1.5 (release_notes/release-4.1 lists 4.1.5 with a bug-fix section). That page may lag the actual latest patch release, so for the current head of the line check the releases page. Which did you mean? References • release_notes/release-4.1.md • data_source/feature-support-data-lake-analytics.md • data_source/catalog/iceberg/iceberg.md • loading/loading_introduction/feature-support-loading-and-unloading.md • data_source/catalog/iceberg/iceberg_meta_table.md • knowledge/qa/iceberg_write_support.md (StarRocks knowledge base)