Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

84 dbt limit support #96

Merged
merged 2 commits into from
Sep 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions tests/functional/adapter/limit/test_limit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from dbt.tests.adapter.basic.test_base import BaseSimpleMaterializations
from dbt.tests.util import run_dbt, run_dbt_and_capture


class TestLimitExasol(BaseSimpleMaterializations):
def test_base(self, project):
run_dbt(["seed"])
run_dbt(["build"])

(results, log_output) = run_dbt_and_capture(
["show", "--select", "view_model", "--limit", "5"]
)
assert len(results) == 1
assert "Previewing node 'sample_model'" not in log_output
assert "Previewing node 'view_model'" in log_output
assert "5 | Hannah" in log_output
assert "6 | Eleanor" not in log_output