Skip to content

Commit

Permalink
wrapped url in str; even though _setup_sql_query explicitly accepts u…
Browse files Browse the repository at this point in the history
…rls as list of strings, somehow it gets a Posix path in tests
  • Loading branch information
Christina Butsko committed Nov 26, 2024
1 parent c0f990e commit 5d2fc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worldcereal/rdm_api/rdm_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def _setup_sql_query(
optional_subset = "AND extract > 0" if subset else ""

for i, url in enumerate(urls):
collection_id = url.split("/")[-2]
collection_id = str(url).split("/")[-2]
query = f"""
SELECT {columns_str}, ST_AsWKB(ST_Intersection(ST_MakeValid(geometry), ST_GeomFromText('{str(geometry)}'))) AS wkb_geometry, '{collection_id}' AS collection_id
FROM read_parquet('{url}')
Expand Down

0 comments on commit 5d2fc4e

Please sign in to comment.