npawar commented on a change in pull request #6900: URL: https://github.com/apache/incubator-pinot/pull/6900#discussion_r630432615
########## File path: pinot-spi/src/main/java/org/apache/pinot/spi/config/TableConfigs.java ########## @@ -70,6 +71,24 @@ public TableConfig getRealtime() { return _realtime; } + @Override + public String toJsonString() { + try { + ObjectNode tableConfigs = JsonUtils.newObjectNode(); + tableConfigs.put("tableName", _tableName); + tableConfigs.set("schema", _schema.toJsonObject()); + if (_offline != null) { + tableConfigs.set("offline", _offline.toJsonNode()); + } + if (_realtime != null) { + tableConfigs.set("realtime", _realtime.toJsonNode()); + } + return JsonUtils.objectToString(tableConfigs); + } catch (JsonProcessingException e) { + throw new RuntimeException(e); + } + } + public String toPrettyJsonString() { Review comment: yes, good catch -- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org