kevinjqliu commented on issue #1255:
URL: 
https://github.com/apache/iceberg-python/issues/1255#issuecomment-2442984949

   In your example, the second row is 
   ```
       {
           "string_field_1": "field_1_b",
       },
   ```
   which corresponds with `string_field_1`
   ```
           pa.field("string_field_1", pa.string(), True),
   ```
   
   and not with `struct_field_1`
   ```
           pa.field(
               "struct_field_1",
               pa.struct(
                   [
                       pa.field("string_nested_1", pa.string()),
                       pa.field("int_item_2", pa.int32()),
                       pa.field("float_item_2", pa.float32()),
                   ]
               ),
           ),
   ```
   
   
   So the Athena result contains `field_1_b` because its written to the 
`string_field_1` column
   


-- 
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: issues-unsubscr...@iceberg.apache.org

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


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

Reply via email to