-
Notifications
You must be signed in to change notification settings - Fork 153
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
[ADAP-384] [Bug] Negative part_number
for dbt.split_part()
is not working
#615
Comments
part_number
for dbt.split_part()
part_number
for dbt.split_part()
Good call @dave-connors-3 Looking at the postgres implementation, it is explicitly supporting the case of a negative The first action to implement this will be adding a negative test case (e.g., After opening a PR for dbt-core, then each adapter should be tested against that branch. We'd expect dbt-bigquery to fail (until you implement it). If other adapters fail, we'll want to open PRs for those as well. Overall, one workflow you could use looks something like this:
|
part_number
for dbt.split_part()
part_number
for dbt.split_part()
is not working
Is this your first time submitting a feature request?
Describe the feature
per the docs, the split part macro supports negative
part_number
arguments to select elements from the end of the resulting array.the current implementation in dbt-bigquery checks for negative values for this argument, and if the arg is negative, just disregards it wholesale!
We should update the logic to accept negative args and handle them appropriately.
Describe alternatives you've considered
keep on keepin on
Who will this benefit?
No response
Are you interested in contributing this feature?
yes!
Anything else?
No response
The text was updated successfully, but these errors were encountered: