{"record":{"id":"b54a4735f25dfa96","repo":"pola-rs/polars","slug":"sink-to-iceberg-table-with-custom-location-provide","errorCode":null,"errorMessage":"sink to Iceberg table with custom location provider '{location_provider_impl}'","messagePattern":"sink to Iceberg table with custom location provider '(.+?)'","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/io/iceberg/_sink.py","lineNumber":150,"sourceCode":"        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,\n        )\n        object_storage_partitioned_paths = (\n            property_as_bool(\n                table_properties,\n                TableProperties.WRITE_OBJECT_STORE_PARTITIONED_PATHS,\n                TableProperties.WRITE_OBJECT_STORE_PARTITIONED_PATHS_DEFAULT,\n            )\n            if object_storage_enabled\n            else None\n        )\n\n        from pyiceberg.io.pyarrow import schema_to_pyarrow\n","sourceCodeStart":132,"sourceCodeEnd":168,"githubUrl":"https://github.com/pola-rs/polars/blob/df599052daf96e7a9cc30a3b0c6bd25d6947e3c0/py-polars/src/polars/io/iceberg/_sink.py#L132-L168","documentation":"Error \"sink to Iceberg table with custom location provider '{location_provider_impl}'\" thrown in pola-rs/polars.","triggerScenarios":"Thrown at py-polars/src/polars/io/iceberg/_sink.py:150 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"}