Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently JsonBuilder in RelJsonWriter cannot be customized due to it being created in the constructor. We can provide a new constructor for RelJsonWriter to allow customized JsonBuilder.
// code placeholder public RelJsonWriter() { jsonBuilder = new JsonBuilder(); relList = jsonBuilder.list(); relJson = new RelJson(jsonBuilder); } // the new constrctor suggested. public RelJsonWriter(JsonBuilder jsonBuilder) { this.jsonBuilder = jsonBuilder; relList = jsonBuilder.list(); relJson = new RelJson(jsonBuilder); }
Attachments
Issue Links
- relates to
-
CALCITE-4893 JsonParseException happens when externalizing expressions with escape character from JSON
- Closed
- links to