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

YAML config breaks on non-string values #616

Closed
wajda opened this issue Feb 24, 2023 · 0 comments · Fixed by #617
Closed

YAML config breaks on non-string values #616

wajda opened this issue Feb 24, 2023 · 0 comments · Fixed by #617
Assignees
Labels
bug Something isn't working
Milestone

Comments

@wajda
Copy link
Contributor

wajda commented Feb 24, 2023

This is a continuation of #610

This is fixed in commons-configuration:1.7 https://issues.apache.org/jira/browse/CONFIGURATION-432

Unfortunately, Spark 2.4 depends on version 1.6

There already were other issues with YAML as version 1.2 being interpreted as float and there may be more.
Other properties sources just treat everything as string and do the conversion once it is asked for. Maybe we could use Yaml the same way.

@wajda wajda self-assigned this Feb 24, 2023
@wajda wajda added this to the 1.0.5 milestone Feb 24, 2023
@wajda wajda added the bug Something isn't working label Feb 24, 2023
wajda added a commit that referenced this issue Feb 24, 2023
… to String for better interoperability with other types of Configuration.
wajda added a commit that referenced this issue Feb 28, 2023
#617)

* issue #616 YAML config to convert single-valued non-string properties to String for better interoperability with other types of Configuration.

* issue #616 PR comments: add a unit test for `getXXX()` as XXX type
@wajda wajda closed this as completed Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant