-
Notifications
You must be signed in to change notification settings - Fork 91
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
Parser Error: syntax error at or near "[" on read_json() #491
Comments
Huh-- what's the value of the |
Hey jwills, thanks for the quick response. I could have been more clear on the URL part. The parameters are practically dates:
where start_date and end_date are configured like this at the top of the script:
So in the
Also worth mentioning is that I have another model which can produce the same exception, here the url looks like this:
Where all variables are passed in the dbt run command with When looking at create or replace view memory.<schema>.<model>__dbt_int as (
select * from read_parquet('s3://bucket/path/*/*/*/*.parquet', union_by_name=False)
); The same structure, except for <model> and the S3 bucket path. |
My model utilizes the
read_json()
function to fetch JSON from an API like this:The profile I use looks like this:
Running the model with target
prod
works, but the second time I run it on targetprod
, I get the following error:Subsequent runs also fail. When I switch target to
nonprod
, the run succeeds again. When running afterwards with targetnonprod
, it fails again. It only seems to succeed on the run where I switch target. Am I missing something? The API endpoint is valid and doesn't contain malformed JSON.I'm not super experienced with dbt or the dbt-duckdb adapter. If any more info is needed please ask.
The text was updated successfully, but these errors were encountered: