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

Avro adapter: AvroNullableConsumer should use readIndex

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

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

評価

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

調査の方向性

AvroNullableConsumer.consume の、スタックトレースで特定された readInt 呼び出しから開始し、Avro の decoder API および ValidatingDecoder の動作と比較してください。ValidatingDecoder を使用して nullable フィールドを、union-versus-int 例外なしで消費できれば完了です。

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

説明

Type: bug
Describe the bug, including details regarding any error messages, version, and platform.

When using Avro's ValidatingDecoder, any schema with a nullable field fails with the following exception:

Exception in thread "main" org.apache.avro.AvroTypeException: Attempt to process a int when a union was expected.
	at org.apache.avro.io.parsing.Parser.advance(Parser.java:91)
	at org.apache.avro.io.ValidatingDecoder.readInt(ValidatingDecoder.java:81)
	at org.apache.arrow.adapter.avro.consumers.AvroNullableConsumer.consume(AvroNullableConsumer.java:44)

Reason: AvroNullableConsumer uses readInt to read the index, but it should use readIndex instead. It's irrelevant in case of a BinaryDecoder, for example (readIndex is the same as readInt), but ValidatingDecoders and any Decoders based on that have different logic.

主要言語
Java
スター
95
フォーク
154
平均マージ
2日 10時間
マージ済み PR(30日)
11

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

apache/arrow-java のほかの issue

apache/arrow-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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