Skip to content

Commit bdf62d0

Browse files
Aryamanz29claude
andcommitted
BLDX-544 | Override DynamoDBTable.creator() to raise NotImplementedError`
The inherited Table.creator() expects a schema_qualified_name which is not applicable to DynamoDBTable. Override it to raise NotImplementedError to prevent user confusion, with a message prompting them to raise a feature request if needed. Closes BLDX-544 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 192c20f commit bdf62d0

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

pyatlan/model/assets/dynamo_dbtable.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
class DynamoDBTable(Table):
2626
"""Description"""
2727

28+
@classmethod
29+
def creator(cls, **kwargs) -> DynamoDBTable:
30+
raise NotImplementedError(
31+
"DynamoDBTable does not support the creator() method inherited from Table, "
32+
"as it does not require a parent schema. "
33+
"If you need this functionality, please raise a feature request."
34+
)
35+
2836
type_name: str = Field(default="DynamoDBTable", allow_mutation=False)
2937

3038
@validator("type_name")
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
3+
from pyatlan.model.assets import DynamoDBTable
4+
5+
6+
def test_creator_raises_not_implemented_error():
7+
with pytest.raises(NotImplementedError):
8+
DynamoDBTable.creator(
9+
name="test",
10+
schema_qualified_name="default/dynamodb/1234/test_db/test_schema",
11+
)

0 commit comments

Comments
 (0)