Skip to content

Fix issue with too long schema names breaking MotherDuck sync#680

Merged
JelteF merged 3 commits intomainfrom
fix-issue-with-long-schema-names
Mar 20, 2025
Merged

Fix issue with too long schema names breaking MotherDuck sync#680
JelteF merged 3 commits intomainfrom
fix-issue-with-long-schema-names

Conversation

@JelteF
Copy link
Copy Markdown
Collaborator

@JelteF JelteF commented Mar 20, 2025

If you have a database+schema that would result in a ddb$ schema with
more than 63 characters it would completely break the MotherDuck
background syncing, due to an error-restart-loop. This changes the code
to skip that schema.

It also codes a bit more defensively in the place where it was also
previously throwing the error continuously. If the schema cannot be found
when we try to add a dependency for it, we say that we failed to create
the schema and skip it instead of getting into this error loop.

If you have a database+schema that would result in a `ddb$` schema with
more than 63 characters it would completely break the MotherDuck
background syncing, due to an error-restart-loop. This changes the code
to skip that schema.

It also codes a bit more defensively in the place where it was also
previously throwing the error continuously. If the schema cannot be found
when we try to add a dependency for it, we say that we failed to create
the schema and skip it instead of getting into this error loop.
Co-authored-by: Y. <y.lemaout@gmail.com>
@JelteF JelteF enabled auto-merge (squash) March 20, 2025 19:28
@JelteF JelteF disabled auto-merge March 20, 2025 19:28
@JelteF JelteF enabled auto-merge (squash) March 20, 2025 19:29
@JelteF JelteF merged commit 5113989 into main Mar 20, 2025
6 checks passed
@JelteF JelteF deleted the fix-issue-with-long-schema-names branch March 20, 2025 19:33
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.

2 participants