Skip to content

Commit

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

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
  • Loading branch information
jlowe authored Mar 24, 2021
1 parent 087e1ea commit ec2dcd7
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 ec2dcd7

Please sign in to comment.