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 switch statements missing a default branch #129

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

ekosz
Copy link
Contributor

@ekosz ekosz commented Oct 2, 2024

Relates to #127

Currently this is just adding a failing test for when one does not add a default to a switch. Happy to try and fix the issue as well, but this will be my first time debugging Spark DSLs so I may need a bit of guidance.

I found the issue and this PR now both adds a test as well as the fix. I also tried following the conventional commits, but please let me know if you would like me to update anything.

Contributor checklist

  • Bug fixes include regression tests

Removed the compiler error when a `switch` statement was missing an
`default` branch. Now it will compile cleanly.
@ekosz ekosz force-pushed the E/failing-switch-test branch from 687cd85 to 6a3d8b4 Compare October 2, 2024 21:40
@ekosz ekosz changed the title Add failing test for missing default Fix switch statements missing a default branch Oct 2, 2024
@jimsynz jimsynz merged commit 3391135 into ash-project:main Oct 3, 2024
16 checks passed
@jimsynz
Copy link
Contributor

jimsynz commented Oct 3, 2024

Thanks for the PR!

@ekosz ekosz deleted the E/failing-switch-test branch October 3, 2024 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants