NVIDIA / NVIDIA/cudf

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

Open
#11,278 2 comments 0 reactions 0 assignees View on GitHub
bug good first issue Java Python Spark
Dominant language
C++
Stars
9.8k
Forks
1.1k
Avg merge
3d 6m
Merged PRs (30d)
278

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.(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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.