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

   these files are created
   
   ```
   warehouse
   └── default
       └── nested_table
           ├── data
           │   ├── %F0%9F%98%8E=Cool+Bar
           │   │   └── 00000-1-3d042b77-ea8d-4687-82fc-956637945f82.parquet
           │   └── %F0%9F%98%8E=Cool+Foo
           │       └── 00000-0-3d042b77-ea8d-4687-82fc-956637945f82.parquet
           └── metadata
               ├── 00000-4fa0ec29-7015-4b81-8c8c-860fad7789cd.metadata.json
               ├── 00001-96e0db38-f241-4600-9c7d-7f5b8f95265b.metadata.json
               ├── 3d042b77-ea8d-4687-82fc-956637945f82-m0.avro
               └── 
snap-2593124689753704982-0-3d042b77-ea8d-4687-82fc-956637945f82.avro
   ```
   
   duckdb can read the manifest list file, but not the manifest file
   ```
   ➜  iceberg-python git:(main) ✗ duckdb -c 'FROM 
read_avro("warehouse/default/nested_table/metadata/snap-2593124689753704982-0-3d042b77-ea8d-4687-82fc-956637945f82.avro")'
   
┌──────────────────────┬─────────────────┬───────────────────┬─────────┬───┬──────────────────┬─────────────────────┬────────────────────┬──────────────────────┬──────────────┐
   │    manifest_path     │ manifest_length │ partition_spec_id │ content │ … │ 
added_rows_count │ existing_rows_count │ deleted_rows_count │      partitions   
   │ key_metadata │
   │       varchar        │      int64      │       int32       │  int32  │   │ 
     int64       │        int64        │       int64        │ 
struct(contains_nu…  │     blob     │
   
├──────────────────────┼─────────────────┼───────────────────┼─────────┼───┼──────────────────┼─────────────────────┼────────────────────┼──────────────────────┼──────────────┤
   │ /Users/kevinliu/re…  │      4724       │         0         │    0    │ … │ 
       2         │          0          │         0          │ 
[{'contains_null':…  │ NULL         │
   
├──────────────────────┴─────────────────┴───────────────────┴─────────┴───┴──────────────────┴─────────────────────┴────────────────────┴──────────────────────┴──────────────┤
   │ 1 rows                                                                     
                                                                             15 
columns (9 shown) │
   
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘```
   
   ```
   ➜  iceberg-python git:(main) ✗ duckdb -c 'FROM 
read_avro("warehouse/default/nested_table/metadata/3d042b77-ea8d-4687-82fc-956637945f82-m0.avro")'
   Invalid Input Error:
   Cannot parse file header: Invalid Avro identifier
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to