kevinjqliu opened a new issue, #1730:
URL: https://github.com/apache/iceberg-python/issues/1730

   ### Apache Iceberg version
   
   None
   
   ### Please describe the bug 🐞
   
   I was able to generate a table which referencing relative paths. I dont 
think we check this anywhere. I think this only applies to local fs
   Reproduce:
   ```
   # create subdir, run `mkdir ./warehouse`
   
   from pyiceberg.catalog import load_catalog
   import pyarrow as pa
   
   warehouse_path = "./warehouse"
   catalog = load_catalog(
       "default",
       **{
           'type': 'sql',
           "uri": f"sqlite:///{warehouse_path}/pyiceberg_catalog.db",
           "warehouse": f"file://{warehouse_path}",
       },
   )
   catalog.create_namespace_if_not_exists("foo")
   arrow_table = pa.table( {"foo": pa.array(["bar"])})
   iceberg_table = catalog.create_table("foo.bar", schema=arrow_table.schema)
   iceberg_table.append(arrow_table)
   ```
   
   ```
   tree ./warehouse
   ```
   
   Metadata json file, 
`00001-16652062-5061-4721-897e-0ac3b3b1cc61.metadata.json`
   ```
   {
       "location": "file://./warehouse/foo.db/bar",
       ...
       "current-snapshot-id": 6232188690197804577,
       "snapshots": [
           {
               "manifest-list": 
"file://./warehouse/foo.db/bar/metadata/snap-6232188690197804577-0-a18a6b57-e36d-403c-9707-6e72fd4104a6.avro",
               ...
           }
       ],
       "metadata-log": [
           {
               "metadata-file": 
"file://./warehouse/foo.db/bar/metadata/00000-a3b2e28f-4b4e-446a-8b75-ee2439c0ac88.metadata.json",
                ...
           }
       ],
       ...
   }
   ```
   
   
   
   
   ### Willingness to contribute
   
   - [ ] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


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