{"record":{"id":"0daac7554d88a3da","repo":"pola-rs/polars","slug":"sink-to-partitioned-iceberg-table","errorCode":null,"errorMessage":"sink to partitioned Iceberg table","messagePattern":"sink to partitioned Iceberg table","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/io/iceberg/_sink.py","lineNumber":137,"sourceCode":"            self.iceberg_storage_properties\n        )\n\n    def attach_sink(self, lf: pl.LazyFrame) -> pl.LazyFrame:\n        return wrap_ldf(lf._ldf.sink_iceberg(self))\n\n    def _attach_resolved_sink(self, plf: PyLazyFrame) -> PyLazyFrame:\n        from pyiceberg.table import TableProperties\n        from pyiceberg.utils.properties import property_as_bool, property_as_int\n\n        import polars as pl\n\n        table = self.table()\n        table_metadata = table.metadata\n        table_properties = table_metadata.properties\n\n        if table.spec().fields:\n            msg = \"sink to partitioned Iceberg table\"\n            raise NotImplementedError(msg)\n\n        if table.sort_order().fields:\n            msg = \"sink to Iceberg table with sort order\"\n            raise NotImplementedError(msg)\n\n        if location_provider_impl := table_properties.get(\n            TableProperties.WRITE_PY_LOCATION_PROVIDER_IMPL\n        ):\n            msg = (\n                \"sink to Iceberg table with custom location provider\"\n                f\" '{location_provider_impl}'\"\n            )\n            raise NotImplementedError(msg)\n\n        object_storage_enabled = property_as_bool(\n            table_properties,\n            TableProperties.OBJECT_STORE_ENABLED,\n            TableProperties.OBJECT_STORE_ENABLED_DEFAULT,","sourceCodeStart":119,"sourceCodeEnd":155,"githubUrl":"https://github.com/pola-rs/polars/blob/df599052daf96e7a9cc30a3b0c6bd25d6947e3c0/py-polars/src/polars/io/iceberg/_sink.py#L119-L155","documentation":"Error \"sink to partitioned Iceberg table\" thrown in pola-rs/polars.","triggerScenarios":"Thrown at py-polars/src/polars/io/iceberg/_sink.py:137 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"df599052daf96e7a9cc30a3b0c6bd25d6947e3c0","analyzedAt":"2026-08-16T12:10:03.978Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}