Skip to content
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

Fix split part negative part number #689

Merged
merged 13 commits into from
Jul 11, 2023

Conversation

dave-connors-3
Copy link
Contributor

@dave-connors-3 dave-connors-3 commented Mar 19, 2023

resolves #688

Description

Copies standard approach seen in other core adapters for handling negative arguments to part_number in dbt.split_part

dbt-labs/dbt-core#7200

Checklist

@dave-connors-3 dave-connors-3 requested a review from a team as a code owner March 19, 2023 21:01
@cla-bot cla-bot bot added the cla:yes label Mar 19, 2023
dev-requirements.txt Outdated Show resolved Hide resolved
dbt/include/spark/macros/utils/split_part.sql Show resolved Hide resolved
@dave-connors-3
Copy link
Contributor Author

dave-connors-3 commented Mar 29, 2023

@mikealfare forgot to link the associated core PR that adds the necessary test case we are interested in. once that's in we can remove the pointer from the dev_requirements.txt

dbt-labs/dbt-core#7200

dev-requirements.txt Outdated Show resolved Hide resolved
@dbeatty10 dbeatty10 merged commit b685297 into main Jul 11, 2023
17 checks passed
@dbeatty10 dbeatty10 deleted the fix-split-part-negative-part-number branch July 11, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ADAP-385] [Bug] Negative part_number for dbt.split_part() is not working
3 participants