You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dbt show should work without adding a trailing pipe to models
Steps To Reproduce
Given a model using pipe syntax, e.g.
from (select1)
When running dbt show
dbt show
Then an error is returned
dbt show -s pipe_bug
09:41:35 Running with dbt=1.8.7
09:41:35 Registered adapter: bigquery=1.8.3
09:41:35 Found 21 models, 126 data tests, 1 seed, 3 analyses, 27 sources, 603 macros
09:41:35
09:41:36 Concurrency: 4 threads (target='dev')
09:41:36
09:41:37 BigQuery adapter: https://console.cloud.google.com/bigquery?project=temp-data-sandbox&j=bq:EU:7fb0610a-7f18-45d4-9d7b-eeb1cd68789a&page=queryresults
09:41:37 Encountered an error:
Runtime Error
Database Error in analysis pipe_bug (src/datawarehouse_dbt/analyses/pipe_bug.sql)
Syntax error: LIMIT not supported after FROM query; Consider using pipe operator `|> LIMIT` or parentheses around the FROM query at [6:3]
amychen1776
changed the title
[Bug] dbt show doesn't work with BigQuery's pipe syntax
[Feature] Support dbt show with BigQuery's pipe syntax
Dec 11, 2024
Is this a new bug in dbt-bigquery?
Current Behavior
dbt is incorrectly compiling queries using pipe syntax with
dbt show
.Given a model using pipe syntax, e.g.
The code is compiled to
The behaviour works correctly if a trailing pipe is added, i.e.
Expected Behavior
dbt show
should work without adding a trailing pipe to modelsSteps To Reproduce
Given a model using pipe syntax, e.g.
When running
dbt show
Then an error is returned
Relevant log output
No response
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: