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

dbt show uses limit 5 at the end #125

Closed
Anteus opened this issue Nov 17, 2023 · 3 comments
Closed

dbt show uses limit 5 at the end #125

Anteus opened this issue Nov 17, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Anteus
Copy link

Anteus commented Nov 17, 2023

Describe the bug

dbt show --select "<model_name>"

error as it adds limit 5 at the end of the query which the db doesn't support. Straight swap to sample 5 or add top 5 in the select.

Steps To Reproduce

In as much detail as possible, please provide steps to reproduce the issue. Sample data that triggers the issue, example model code, etc is all very helpful here.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots and log output

If applicable, add screenshots or log output to help explain your problem.

The output of dbt --version:

<output goes here>

The operating system you're using:

The output of python --version:

Additional context

Add any other context about the problem here.

@Anteus Anteus added the bug Something isn't working label Nov 17, 2023
@tallamohan
Copy link
Contributor

@Anteus, this issue will be fixed in the next release of dbt-teradata 1.7.x

@tallamohan
Copy link
Contributor

Fix will be available in dbt-teradata 1.7.x

@Anteus
Copy link
Author

Anteus commented Dec 4, 2023

Thanks it works fine!

For those still with the issue using dbt Power User under extension settings there's a setting Dbt: Query Template that you can set to: select top {limit} * from {{query}} as query

@Anteus Anteus closed this as completed Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants