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

Add a possibility to implement explicit Converter<U, String> to JSON, XML, CSV import / export #5673

Open
14 tasks
lukaseder opened this issue Nov 17, 2016 · 2 comments

Comments

@lukaseder
Copy link
Member

lukaseder commented Nov 17, 2016

Currently, all "unknown" data types are serialised by calling toString() simply. Deserialisation of such values is currently not possible. Users should be able to intercept this with Converter<T, String> SPIs that they can provide to individual serialisation / deserialisation calls, or globally.

These could also influence MULTISET emulations.

Tasks

  • New FormattingProvider SPI methods that allows for registering global import / export serialiasers / deserialisers in the form of Converter<U, String> for
    • CSV
    • JSON
    • XML
    • TXT
  • Refactor various default behaviour to be implemented directly in this SPI's default implementation, instead of the various formatters, parsers, for
    • CSV
    • JSON
    • XML
    • TXT
  • Explicit overrides on a per field basis in the Loader API: Add support for Converters in the Loader API #3221
  • Study interactions with native support for
    • SQL/JSON
    • SQL/XML

See also:

@lukaseder
Copy link
Member Author

These mappings could also help influence MULTISET emulations. At least it should be investigated how the two feature sets interact. The new converters are all about reading strings from JSON / XML, but we might also want to be able to influence the serialisation on the SQL side, e.g. using custom CAST expressions, etc.

@lukaseder
Copy link
Member Author

This is also useful for the Loader API: #3221

@lukaseder lukaseder added this to the Version 3.17.0 milestone May 26, 2022
@lukaseder lukaseder changed the title Add a possibility to implement explicit Converter<T, String> to JSON / XML serialisation Add a possibility to implement explicit Converter<T, String> to JSON, XML, CSV import / export May 26, 2022
@lukaseder lukaseder changed the title Add a possibility to implement explicit Converter<T, String> to JSON, XML, CSV import / export Add a possibility to implement explicit Converter<U, String> to JSON, XML, CSV import / export May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant