Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToList

オープン 初心者向け
#18,596 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@mohamed-elbrik がすでに取り組んでいます。

2026年10月20日 から。

  • #18595 @mohamed-elbrik による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
backend

調査の方向性

IcebergSinkConfig.stringToList() と testStringToList、testStringWithParensToList メソッドを見つけてください。issue にはそれらのファイルパスが記載されていません。まずパーサーと既存のテストを読み、その後それらのテストを実行してください。空白だけの入力と、連続または末尾の区切り文字による空要素が除外され、記載されたケースがテストでカバーされていれば完了です。

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

説明

bug
Apache Iceberg version

1.12.0 (latest release)

Query engine

None

Please describe the bug 🐞
Problem

IcebergSinkConfig.stringToList() previously only checked for value == null || value.isEmpty(). When provided with whitespace-only strings, consecutive delimiters (e.g., col1, , col2), or trailing commas (e.g., col1, ), it retained empty string elements (""). This caused downstream operations like table.schema().findField("") or the PartitionSpec builder to fail unexpectedly with IllegalArgumentException: ID column not found: or unsupported transforms. Additionally, the testStringWithParensToList method was left unimplemented.

Solution
  • Add whitespace check (value.trim().isEmpty()) in IcebergSinkConfig.stringToList().
  • Filter out empty elements (.filter(s -> !s.isEmpty())) after trimming individual items.
  • Implement comprehensive test cases including whitespace and empty element handling in testStringToList and testStringWithParensToList.
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.3k
フォーク
3.6k
平均マージ
2日 8時間
マージ済み PR(30日)
143

環境構築

はじめの一歩

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

apache/iceberg のほかの issue

apache/iceberg の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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