rashtao opened a new pull request #32299:
URL: https://github.com/apache/spark/pull/32299


   This PR provides an overloaded version of `JacksonGenerator` constructor 
that accepts a custom `JsonGenerator` instead of `java.io.Writer`. This would 
enable the use of `JacksonGenerator` with any [Jackson binary 
dataformat](https://github.com/FasterXML/jackson-dataformats-binary).
   Those Jackson implementations mostly do not have support for 
`com.fasterxml.jackson.core.JsonFactory#createGenerator(java.io.Writer)`, but 
only for 
`com.fasterxml.jackson.core.JsonFactory#createGenerator(java.io.OutputStream)`.
   
   ### Why are the changes needed?
   
   This would be beneficial for datasources implementations, which need to 
convert data to any Jackson binary dataformat, since they could reuse 
`JacksonGenerator` type mappings.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   I added a positive unit test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to