Skip to content

Commit

Permalink
Fix unknown column name error when filtering ORC file with no names (N…
Browse files Browse the repository at this point in the history
…VIDIA#2007)

Signed-off-by: Jason Lowe <[email protected]>
  • Loading branch information
jlowe authored Mar 24, 2021
1 parent ad0c752 commit 2a84708
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,8 @@ class GpuOrcPartitionReader(
if (debugDumpPrefix != null) {
dumpOrcData(dataBuffer, dataSize)
}
val includedColumns = ctx.updatedReadSchema.getFieldNames.asScala
val fieldNames = ctx.updatedReadSchema.getFieldNames.asScala.toArray
val includedColumns = requestedMapping.map(_.map(fieldNames(_))).getOrElse(fieldNames)
val parseOpts = ORCOptions.builder()
.withTimeUnit(DType.TIMESTAMP_MICROSECONDS)
.withNumPyTypes(false)
Expand Down

0 comments on commit 2a84708

Please sign in to comment.