Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20933#discussion_r179506617
  
    --- Diff: 
sql/core/src/main/java/org/apache/spark/sql/execution/datasources/orc/OrcColumnarBatchReader.java
 ---
    @@ -233,7 +234,7 @@ private boolean nextBatch() throws IOException {
     
         if (!copyToSpark) {
           for (int i = 0; i < requiredFields.length; i++) {
    -        if (requestedColIds[i] != -1) {
    +        if (requestedColIds[i] != -1 && requestedPartitionColIds[i] == -1) 
{
    --- End diff --
    
    This implies `requestedColIds[i]` and `requestedPartitionColIds[i]` may 
both be non-negative, is it possible?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to