Skip to content

Conversation

@rudolfix
Copy link
Collaborator

@rudolfix rudolfix commented Jun 19, 2025

Description

Allows to override _get_table_post_update_sql in sql job client. The intended usage is to add additional statements (ie. foreign references) that must be executed after all tables were created/altered.

@netlify
Copy link

netlify bot commented Jun 19, 2025

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit 033bc78
🔍 Latest deploy log https://app.netlify.com/projects/dlt-hub-docs/deploys/68552f4a6c11b1000948b0ef

@rudolfix rudolfix requested a review from burnash June 19, 2025 15:25
@rudolfix rudolfix self-assigned this Jun 19, 2025
@rudolfix rudolfix removed the request for review from burnash June 19, 2025 15:29
@rudolfix rudolfix marked this pull request as draft June 19, 2025 15:30
Comment on lines +674 to +677
for sql in post_sql_statements:
if not sql.endswith(";"):
sql += ";"
post_sql_updates.append(sql)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's best to extract this into a utility method, can do as a follow-up PR.

Copy link
Collaborator

@burnash burnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, there's a small code repetition we can address this in a follow up PR.

@burnash
Copy link
Collaborator

burnash commented Jun 20, 2025

@rudolfix and we'd need a test for it.

@rudolfix
Copy link
Collaborator Author

@rudolfix and we'd need a test for it.

right! hopefully #2674 will use the new override so for now tests there suffice

@burnash burnash merged commit af94e58 into devel Jun 22, 2025
108 of 110 checks passed
@burnash burnash deleted the feat/allows-to-override-update-sql branch June 22, 2025 10:39
dat-a-man pushed a commit that referenced this pull request Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants