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

[SFN] Enhancements for Intrinsic Function StringSplit #9749

Merged
merged 3 commits into from Nov 28, 2023

Conversation

MEPalma
Copy link
Contributor

@MEPalma MEPalma commented Nov 28, 2023

Motivation

For the current implementation of the SFN interpreter, the Intrinsic Functions States.StringSplit does not filter for non-empty strings after computing the parts. This PR addresses such behaviour by filtering for empty string results.
Closes: #9742

Changes

Added empty string filtering after computing the split parts in the implementation for States.StringSplit, and a number of relevant test cases

@MEPalma MEPalma added the semver: patch Non-breaking changes which can be included in patch releases label Nov 28, 2023
@MEPalma MEPalma added this to the 3.1 milestone Nov 28, 2023
@MEPalma MEPalma self-assigned this Nov 28, 2023
@coveralls
Copy link

coveralls commented Nov 28, 2023

Coverage Status

coverage: 84.164% (+0.02%) from 84.149%
when pulling 532effe on MEP-sfn-StatesSplitString_empty_parts
into 731873d on master.

Copy link

github-actions bot commented Nov 28, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 7m 25s ⏱️
2 371 tests 2 056 ✔️ 315 💤 0
2 372 runs  2 056 ✔️ 316 💤 0

Results for commit 532effe.

♻️ This comment has been updated with latest results.

Copy link
Member

@dominikschubert dominikschubert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit, otherwise LGTM!

🎳 Next one down

@MEPalma MEPalma merged commit 54138a0 into master Nov 28, 2023
26 checks passed
@MEPalma MEPalma deleted the MEP-sfn-StatesSplitString_empty_parts branch November 28, 2023 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: SFN - States.StringSplit errors when the same value in AWS succeeds
3 participants