bharos commented on issue #1479:
URL: https://github.com/apache/iceberg/issues/1479#issuecomment-2689200126

   Revisiting this issue, I notice even in V1.8 with Spark3.5 iceberg partition 
values are having "+" in the path instead of space.
   It can pose some problems, For example, let's say I archive iceberg data for 
partition `date_key=2023-03-01,name=Entry 1`
   in path 
```gs://warehouse/retention_service_test_db/iceberg_table/data/date_key=2023-03-01/name=Entry+1/```
   Later I want to restore or add back this partition to iceberg using 
`add_files` API
   
   To restore, I copy this data into 
`gs://warehouse/retention_service_test_db/iceberg_table/data/add_file/date_key=2023-03-01/name=Entry+1/`
   
   
   ### Problem 1:
   
   and call
   ```
   CALL spark_catalog.system.add_files(
     table => 'retention_service_test_db.iceberg_table',
     source_table => 
'`parquet`.`gs://warehouse/retention_service_test_db/iceberg_table/data/add_file/`',
     partition_filter => map('date_key','2023-03-01','name', 'Entry 1')
   );
   ```
   It doesn't work saying no matching partitions, because of the "+" in path
   
   ### Problem 2:
   If I just specify ` partition_filter => map('date_key','2023-03-01')` (or 
even skip the partition_filter), it will succeed, but the partition will have 
the '+' in the string value ie. 
```{"date_key":"2023-03-01","name":"Entry+1"}``` which should actually be 
`Entry 1`


-- 
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