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
github-actionsbot
changed the title
[Feature] support negative part_number for dbt.split_part()
[ADAP-384] [Feature] support negative part_number for dbt.split_part()Mar 17, 2023
Looking at the postgres implementation, it is explicitly supporting the case of a negative part_number, so it makes sense for dbt-bigquery to match it: postgres/macros/utils/split_part.sql
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:
Open PR for dbt-core
Open PRs for each of the adapters (or merely local branches)
Temporarily update the dev-requirements.txt file within each adapter to point to your PR in Step 1, like this.
Once all PRs are passing CI, reviewed, and approved, then merge the dbt-core PR
Undo the temporary update to dev-requirements.txt in each of the adapter PRs (so that they point at the main branch of dbt-core again) like this
Once CI passes, then all the adapter PRs can be merged as well.
dbeatty10
changed the title
[ADAP-384] [Feature] support negative part_number for dbt.split_part()
[ADAP-384] [Bug] Negative part_number for dbt.split_part() is not working
Jul 11, 2023
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: