Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Shredded variant readers throw InvalidCastException for large_binary and binary_view storage

Cerrado
#448 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp
Área
data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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#

Lenguaje dominante
C#
Estrellas
40
Forks
30
Merge medio
1 d 4 h
PR fusionados (30 d)
14

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/arrow-dotnet

Todos los issues de apache/arrow-dotnet

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.