Skip to content
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

[CT-1154] [Bug] Adapter test bool_or contains reserved keyword #5817

Closed
2 tasks done
sdebruyn opened this issue Sep 12, 2022 · 2 comments · Fixed by #5818
Closed
2 tasks done

[CT-1154] [Bug] Adapter test bool_or contains reserved keyword #5817

sdebruyn opened this issue Sep 12, 2022 · 2 comments · Fixed by #5818
Labels
bug Something isn't working Team:Adapters Issues designated for the adapter area of the code

Comments

@sdebruyn
Copy link
Contributor

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

The test fixture for the adapter test bool_or contains the reserved keyword key which might fail in some adapters (as it does in the one for SQL Server)

Expected Behavior

Tests should not use commonly reserved keywords for their column names

Steps To Reproduce

Implement the bool_or test in your adapter in a database engine where key is reserved (e.g. SQL Server)

Relevant log output

('42000', "[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near the keyword 'key'. (156) (SQLMoreResults)")

Environment

No response

Which database adapter are you using with dbt?

other (mention it in "Additional Context")

Additional Context

dbt-sqlserver

@sdebruyn sdebruyn added bug Something isn't working triage labels Sep 12, 2022
@github-actions github-actions bot changed the title [Bug] Adapter test bool_or contains reserved keyword [CT-1154] [Bug] Adapter test bool_or contains reserved keyword Sep 12, 2022
@dbeatty10 dbeatty10 self-assigned this Sep 12, 2022
@dbeatty10
Copy link
Contributor

Thanks for reporting this @sdebruyn!

Which test(s) are failing on key being a reserved keyword?

Is it fixture_bool_or? Or something else?

@sdebruyn
Copy link
Contributor Author

Hi @dbeatty10 that's indeed the one. I fixed that in the linked PR.

@dbeatty10 dbeatty10 added Team:Adapters Issues designated for the adapter area of the code and removed triage labels Sep 14, 2022
@dbeatty10 dbeatty10 removed their assignment Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Adapters Issues designated for the adapter area of the code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants