pola-rs/polars · error · NotImplementedError
sink to Iceberg table with sort order
Error message
sink to Iceberg table with sort order
What it means
Error "sink to Iceberg table with sort order" thrown in pola-rs/polars.
Source
Thrown at py-polars/src/polars/io/iceberg/_sink.py:141
return wrap_ldf(lf._ldf.sink_iceberg(self))
def _attach_resolved_sink(self, plf: PyLazyFrame) -> PyLazyFrame:
from pyiceberg.table import TableProperties
from pyiceberg.utils.properties import property_as_bool, property_as_int
import polars as pl
table = self.table()
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,View on GitHub (pinned to df599052da)
When it happens
Trigger: Thrown at py-polars/src/polars/io/iceberg/_sink.py:141 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/91385e6c1613caf1.
Report an issue: GitHub.