-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quoting changes from 1.4.0 to 1.4.1 break MSCK REPAIR TABLE pre-hooks in models #459
Comments
Workaround: explicitly use |
An idea that doesn't solve the fundamental problem but may mitigate most of the instances people will encounter (and get mightily confused by): instead of automatically double quoting all identifiers, maybe check them first against a regexp that accepts only valid identifiers and quote them only if they don't match? |
Is it really an issue? as you find out using |
@nicor88 The problem with "just document it" is that it's a surprising behavior with an obscure cause, which is likely to cause significant grief to unsuspecting users and, as a result, lead to repeated inquiries and bug reports to library maintainers from people who maybe even read the documentation but didn't remember that one sentence. It's basically XKCD's toaster that stabs users in the face. |
@sacundim Well, we could make it clear for users that there are breaking changes in releases notes and adding know issues in the README. Don't people read docs when working with a tool/framework? If they don't they should ;) there are some tools that needs instructions and tools that don't :P - Therefore again: adding a note in Known issues will make the job IMHO. Also, feel free to propose your solution if you want, contributions are more than welcome:) |
* Bump pyodbc from 4.0.32 to 4.0.34 Bumps [pyodbc](https://github.com/mkleehammer/pyodbc) from 4.0.32 to 4.0.34. - [Release notes](https://github.com/mkleehammer/pyodbc/releases) - [Commits](mkleehammer/pyodbc@4.0.32...4.0.34) --- updated-dependencies: - dependency-name: pyodbc dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Add automated changelog yaml from template for bot PR * Remove newline Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Github Build Bot <[email protected]> Co-authored-by: leahwicz <[email protected]>
* convert to reusable nightly tests * fix triage label workflow * point to main
I have a project that makes use of
pre_hook
in a handful of models to runMSCK REPAIR TABLE
on source tables. Example such model:Just the other day I rebuilt my Docker image for this DBT project for the first time after several weeks, but the project started failing with errors like this (fuller stack trace at the bottom of the ticket):
I have managed to determine that pinning dbt-athena-community at version 1.4.0 doesn't experience the problem, it happens when I use v1.4.1 instead:
Looking at dbt.log, I see that with adapter v1.4.1, the schema and table name are quoted with double quotes:
And running that statement in the AWS Athena console gets the same error "mismatched input 'MSCK'" that I show above. Athena uses the Hive-style quoting in MSCK REPAIR TABLE statements, like this one that works:
Full stack trace:
The text was updated successfully, but these errors were encountered: