apache / apache/arrow-java

[Java] Add accessors to get type parameters from vector classes

Abierto
#427 9 comentarios 0 reacciones 0 asignados Ver en GitHub
Type: enhancement
Lenguaje dominante
Java
Estrellas
94
Forks
152
Merge medio
3 d 16 h
PR fusionados (30 d)
11

Descripción

Vector classes contain private copies of each param in the `ArrowType`, but does not have any public api to access them. So if given a vector you would have to get the `Field` from the and cast to the correct type. For example, with a `TimeStampMicroTZVector` and trying to get the timezone:

```

if field.getType.isInstanceOf[ArrowType.Timestamp] &&
field.getType.asInstanceOf[ArrowType.Timestamp].getTimezone
```

It would be more convenient to have direct accessors for these type params for the vector types that have parameters:

- DecimalVector
- FixedSizeBinaryVector
- ListVector
- TimeStamps with timezones
- FixedSizedListVector
- Unions

**Reporter**: [Bryan Cutler](https://issues.apache.org/jira/browse/ARROW-1361) / @BryanCutler
#### PRs and other links:
- [GitHub Pull Request apache/arrow#972](https://github.com/apache/arrow/pull/972)

**Note**: *This issue was originally created as [ARROW-1361](https://issues.apache.org/jira/browse/ARROW-1361). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Revisa primero las clases de vectores mencionadas en el issue y el pull request enlazado apache/arrow#972. Comprueba cómo se representan sus parámetros privados de ArrowType y, después, confirma que existen accessors directos para DecimalVector, FixedSizeBinaryVector, ListVector, vectores de timestamp conscientes de la zona horaria, FixedSizeListVector y unions.

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

Evaluación

Stack tecnológico
java
Área
backend-api-design
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.