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

adjust Value.ignore() to make ignoring of other types than String available #534

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

ymo-sci
Copy link
Contributor

@ymo-sci ymo-sci commented Aug 14, 2024

Description

Sometimes we have a JDBC Row where 0 value means "null" but ignoring does only work with strings until now. object.as(Row.class).getValue("value").ignore(BigDecimal.ZERO) should ignore a found 0 without calling casted Value.of(object.as(Row.class).getValue().asString()).ignore("0")

Additional Notes

  • This PR fixes or works on following ticket(s): SE-13904
  • This PR is related to PR:

Checklist

  • Code change has been tested and works locally
  • Code was formatted via IntelliJ and follows SonarLint & best practices
  • Patch Tasks: Is local execution of Patch Tasks necessary? If so, please also mark the PR with the tag.

…ilable

Sometimes we have a JDBC Row where 0 value means "null" but ignoring does only work with strings until now.
object.as(Row.class).getValue("value").ignore(BigDecimal.ZERO) should ignore a found 0 without calling
Value.of(object.as(Row.class).getValue().asString().ignore("0")
@ymo-sci ymo-sci added the 🧬 Enhancement Contains new features label Aug 14, 2024
@ymo-sci ymo-sci merged commit 4e95c29 into develop Aug 15, 2024
3 checks passed
@ymo-sci ymo-sci deleted the feature/ymo/ignore branch August 15, 2024 14:53
@ymo-sci ymo-sci added the 💣 BREAKING CHANGE Contains non-backwards compatible changes to public methods or changes the behavior of existing code label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💣 BREAKING CHANGE Contains non-backwards compatible changes to public methods or changes the behavior of existing code 🧬 Enhancement Contains new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants