clintropolis opened a new pull request, #12900:
URL: https://github.com/apache/druid/pull/12900

   ### Description
   This PR switches `TO_JSON_STRING` and `PARSE_JSON` functions to use the 
`@Json` annotated `ObjectMapper` to better tie into the standard JSON serde we 
use for result formats, as mentioned as an alternative to solving the problem 
in #12893 (we should do both).
   
   This allows a much wider variety of complex types to be translated into 
strings using `TO_JSON_STRING`, many of these likely just being turned into 
base64 string values, but now they at least work instead of failing with an 
error such as
   
    ```
   Unable to stringify 
[org.apache.druid.query.aggregation.datasketches.theta.SketchHolder@a92fef64] 
to JSON
   ```
   
   <hr>
   
   This PR has:
   - [x] been self-reviewed.
   - [ ] added unit tests or modified existing tests to cover new code paths, 
ensuring the threshold for [code 
coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md)
 is met.
   - [x] been tested in a test Druid cluster.
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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