comphead commented on issue #1681:
URL: 
https://github.com/apache/datafusion-comet/issues/1681#issuecomment-2852855311

   I went down the call stack and found the reader gives batches wrong in 
`OpStruct::NativeScan(scan)`
   
   ```
   [core/src/execution/planner.rs:1169:17] result = [
       Ok(
           RecordBatch {
               schema: Schema {
                   fields: [
                       Field {
                           name: "c0",
                           data_type: List(
                               Field {
                                   name: "item",
                                   data_type: Struct(
                                       [
                                           Field {
                                               name: "a",
                                               data_type: Int32,
                                               nullable: true,
                                               dict_id: 0,
                                               dict_is_ordered: false,
                                               metadata: {},
                                           },
                                           Field {
                                               name: "c",
                                               data_type: Utf8,
                                               nullable: true,
                                               dict_id: 0,
                                               dict_is_ordered: false,
                                               metadata: {},
                                           },
                                       ],
                                   ),
                                   nullable: true,
                                   dict_id: 0,
                                   dict_is_ordered: false,
                                   metadata: {},
                               },
                           ),
                           nullable: true,
                           dict_id: 0,
                           dict_is_ordered: false,
                           metadata: {},
                       },
                   ],
                   metadata: {},
               },
               columns: [
                   ListArray
                   [
                     StructArray
                   -- validity:
                   [
                     valid,
                   ]
                   [
                   -- child 0: "a" (Int32)
                   PrimitiveArray<Int32>
                   [
                     1,
                   ]
                   -- child 1: "c" (Utf8)
                   StringArray
                   [
                     "n",
                   ]
                   ],
                   ],
               ],
               row_count: 1,
           },
       ),
   ]
   ```
   
   Value for c column is `n` from reader however it should be `x` as the `n` it 
is a column B, checking 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to