Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2024 06:09 AM
For me the problem was solved when I defined the schema in dlt as following:
@Dlt.table(
name=f"{target_table}",
schema = """userid STRING,
contract_no INT,
CONSTRAINT pk_<table_name> PRIMARY KEY(userid)""",
)
instead of using this:
schema = """userid STRING PRIMARY KEY,
contract_no INT"""