pola-rs/polars · error · NotImplementedError
sink to Iceberg table with custom location provider '{locati
Error message
sink to Iceberg table with custom location provider '{location_provider_impl}' What it means
Error "sink to Iceberg table with custom location provider '{location_provider_impl}'" thrown in pola-rs/polars.
Source
Thrown at py-polars/src/polars/io/iceberg/_sink.py:150
table_metadata = table.metadata
table_properties = table_metadata.properties
if table.spec().fields:
msg = "sink to partitioned Iceberg table"
raise NotImplementedError(msg)
if table.sort_order().fields:
msg = "sink to Iceberg table with sort order"
raise NotImplementedError(msg)
if location_provider_impl := table_properties.get(
TableProperties.WRITE_PY_LOCATION_PROVIDER_IMPL
):
msg = (
"sink to Iceberg table with custom location provider"
f" '{location_provider_impl}'"
)
raise NotImplementedError(msg)
object_storage_enabled = property_as_bool(
table_properties,
TableProperties.OBJECT_STORE_ENABLED,
TableProperties.OBJECT_STORE_ENABLED_DEFAULT,
)
object_storage_partitioned_paths = (
property_as_bool(
table_properties,
TableProperties.WRITE_OBJECT_STORE_PARTITIONED_PATHS,
TableProperties.WRITE_OBJECT_STORE_PARTITIONED_PATHS_DEFAULT,
)
if object_storage_enabled
else None
)
from pyiceberg.io.pyarrow import schema_to_pyarrow
View on GitHub (pinned to df599052da)
When it happens
Trigger: Thrown at py-polars/src/polars/io/iceberg/_sink.py:150 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of pola-rs/polars@df599052da (2026-08-16).
Data as JSON: /api/errors/b54a4735f25dfa96.
Report an issue: GitHub.