-
Notifications
You must be signed in to change notification settings - Fork 44
Labels
bugSomething isn't workingSomething isn't workingdiscrepancydiscrepancy between the dbt Fusion Engine and dbt Corediscrepancy between the dbt Fusion Engine and dbt Corehas-reproHas a reproducible exampleHas a reproducible examplepackage
Description
Describe the bug
Found when testing the dbt_artifacts
package.
The code
{{ print("pop: " ~ {}.pop('a','b') ) }}
is correct in dbt-core, and will print b
, as expected
On the other hand, Fusion raises the error
error: dbt1501: Failed to render SQL too many arguments: remove() takes exactly one argument, but 2 were given
What version of dbt Fusion is this bug in? (find out by running dbt --version
)
Preview 6
Is this a discrepancy between the dbt Fusion Engine and dbt Core? Check one.
- YES
- NO
To Reproduce
add the snippet from above in any model
Expected behavior
- we should accept a second arg to
pop()
for the default value - the error message is cryptic as it mentions
remove()
which is not used anywhere in the user project
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdiscrepancydiscrepancy between the dbt Fusion Engine and dbt Corediscrepancy between the dbt Fusion Engine and dbt Corehas-reproHas a reproducible exampleHas a reproducible examplepackage