From 59e4f737c743664eb2645517a801aad066144c76 Mon Sep 17 00:00:00 2001 From: Felix Scherz Date: Tue, 7 Jan 2025 08:59:42 +0100 Subject: [PATCH] feat: raise error on specified table location --- pyiceberg/catalog/s3tables.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyiceberg/catalog/s3tables.py b/pyiceberg/catalog/s3tables.py index ed6a8027f2..a732afcdd9 100644 --- a/pyiceberg/catalog/s3tables.py +++ b/pyiceberg/catalog/s3tables.py @@ -138,6 +138,8 @@ def create_table( sort_order: SortOrder = UNSORTED_SORT_ORDER, properties: Properties = EMPTY_DICT, ) -> Table: + if location: + raise NotImplementedError("S3 Tables does not support user specified table locations.") namespace, table_name = self._validate_database_and_table_identifier(identifier) schema: Schema = self._convert_schema_if_needed(schema) # type: ignore