-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ORC reader for empty DataFrame/Table (#7624)
`ff.types` by default will have a [main type as struct](https://github.com/rapidsai/cudf/blob/0146f743987a6f2a51aab08f34771eb4d3531afc/cpp/src/io/orc/writer_impl.cu#L1278) under which all other columns will originate. So, we need to skip first which is not a column and start with 1st index. (Look for `Type Information` in [ORC Specification](https://orc.apache.org/specification/ORCv1/)) Along with that, we should also take care of the scenario where user would specify specific column name to retrieve, but it doesn't exist in case of empty data frame/table. Added test case to validate both scenario. closes #7356 Authors: - Ram (Ramakrishna Prabhu) (@rgsl888prabhu) Approvers: - Devavret Makkar (@devavret) - @nvdbaranec - Vukasin Milovanovic (@vuule) - Michael Wang (@isVoid) URL: #7624
- Loading branch information
1 parent
c21bd0e
commit 8632ca0
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters