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

Shredded variant readers throw InvalidCastException for large_binary and binary_view storage

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

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

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

評価

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

調査の方向性

Start in Apache.Arrow.Operations.Shredding, focusing on ShreddedVariant, ShreddedObject, ShreddedArray, and TryGetResidualReader. Trace the binary and string columns accepted by VariantArray and ShredSchema, then check the affected logical, typed, and residual read paths. Done means large_binary, binary_view, and large_utf8 representations are accepted without InvalidCastException in the listed scenarios.

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

説明

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

VariantArray accepts binary, large_binary or binary_view for its metadata and value fields, at the top level and inside shredded element groups (VariantExtensionDefinition.FindBinaryFieldIndex, ShredSchema.IsElementGroupStruct). ShredSchema.FromArrowType also maps large_utf8 and large_binary typed_value columns.

The shredding-aware readers in Apache.Arrow.Operations.Shredding (ShreddedVariant, ShreddedObject, ShreddedArray) cast those columns to BinaryArray / StringArray, so any other representation throws InvalidCastException. This affects:

  • GetLogicalVariantValue on any such column, shredded or not. For an unshredded large_binary column the core VariantArray.GetVariantValue works, but GetLogicalVariantValue throws.
  • ShreddedVariant.GetString() / GetBinaryBytes() on large_utf8 / large_binary typed columns.
  • Residual reads in ShreddedObject / ShreddedArray, TryGetResidualReader, etc.

Expected: the readers accept every storage type that VariantArray and ShredSchema accept.

Found while reviewing #447, whose new array-level entry points go through these readers.

Component(s)

C#

主要言語
C#
スター
40
フォーク
30
平均マージ
1日 7時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

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

apache/arrow-dotnet のほかの issue

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

似ている issue

C# の issue をもっと見る

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

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