rapidsai/cudf

[BUG] Loading a missing column from a Parquet file results in ArrayIndexOutOfBoundsException

Aberta

#11.278 aberto em 15 de jul. de 2022

 (2 comentários) (0 reação) (0 responsável)C++ (735 forks)batch import
JavaPythonSparkbuggood first issue

Métricas do repositório

Stars
 (6.000 estrelas)
Métricas de merge de PR
 (Mesclagem média 17d 21h) (230 fundiu PRs em 30d)

Description

Describe the bug Attempting to load a non-existent column from a Parquet file throws ArrayIndexOutOfBoundsException instead of a more specific error.

Steps/Code to reproduce bug Try to load a single column name that does not exist from a Parquet file. For example:

Table.readParquet(ParquetOptions.builder().includeColumn("doesnotexist").build(), new java.io.File("data.parquet"))

throws the following exception:

java.lang.ArrayIndexOutOfBoundsException: 0
  at ai.rapids.cudf.Table.<init>(Table.java:96)
  at ai.rapids.cudf.Table.readParquet(Table.java:974)
  ... 49 elided

Expected behavior A more useful error exception/message should be used than an array index error.

Guia do colaborador