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 #618

Merged
merged 5 commits into from
Jul 11, 2023
Merged

Fix split part negative part number #618

merged 5 commits into from
Jul 11, 2023

Conversation

dave-connors-3
Copy link
Contributor

resolves #615

Description

Adds part_number to the second calculation when argument is negative to return the correct element from the array.

Checklist

@dave-connors-3 dave-connors-3 requested a review from a team as a code owner March 20, 2023 20:37
@cla-bot cla-bot bot added the cla:yes label Mar 20, 2023
@Fleid
Copy link
Contributor

Fleid commented Mar 24, 2023

Hey @dave-connors-3, is there a way to test that? A test that should have been failing before but was missing ;)

@Fleid Fleid added the ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering label Mar 24, 2023
@dave-connors-3
Copy link
Contributor Author

@Fleid the base test case was missing a case where the arg was negative 😓 the associated core PR adds it!

@dave-connors-3
Copy link
Contributor Author

dave-connors-3 commented Mar 29, 2023

@Fleid (which is here: dbt-labs/dbt-core#7200)

@Fleid
Copy link
Contributor

Fleid commented Apr 4, 2023

Will try to squeeze in 1.5.0 but that looks tight :/

dev-requirements.txt Outdated Show resolved Hide resolved
@dbeatty10 dbeatty10 changed the title add part number to negative case Fix split part negative part number Jul 11, 2023
@dbeatty10 dbeatty10 merged commit 2f80a27 into main Jul 11, 2023
24 checks passed
@dbeatty10 dbeatty10 deleted the fix-split-part branch July 11, 2023 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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