VARIANT does not work with older <= 4.1 HMS versions.

オープン
#19,072 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java, spark
領域
database

調査の方向性

Start from the VARIANT handling added for issue #15220 and the Hive metastore table-creation path that sends column types to HMS. Reproduce with HMS 3.0 by creating a VARIANT table and confirm the InvalidObjectException: Invalid column type: unknown failure. The open question is the compatibility contract: whether to send binary or gate it behind a catalog config, so done means an agreed mapping and a tested fallback for older HMS versions.

索引モデルが issue の本文から書いたものです。

説明

bug
Apache Iceberg version

1.12.0 (latest release)

Query engine

Spark

Please describe the bug 🐞

This is a follow up on https://github.com/apache/iceberg/issues/15220
We tried creating a table with VARIANT using a HMS 3.0 and we got this error message:

org.apache.iceberg.exceptions.ValidationException: Invalid hive object for <table>
Caused by: InvalidObjectException(message: Invalid column type: unknown)

I had a chat with @nssalian about this as well and apparently its because HMS validates the column types on the server.

Question: What should Iceberg send to older HMS for variant columns? Should we go with "binary" ? Or should we perhaps add a hive.metastore.variant-supported catalog config to use "binary" when enabled and "variant" otherwise?

cc @pvary @RussellSpitzer

Willingness to contribute
  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time
主要言語
Java
スター
9.5k
フォーク
3.7k
平均マージ
2日 2時間
マージ済み PR(30日)
170

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/iceberg のほかの issue

apache/iceberg の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。