gortiz commented on code in PR #10792: URL: https://github.com/apache/pinot/pull/10792#discussion_r1206309308
########## pinot-segment-spi/src/test/java/org/apache/pinot/segment/spi/index/creator/H3IndexConfigTest.java: ########## @@ -84,4 +84,16 @@ public void withSomeData() Assert.assertEquals(resolution.getLowestResolution(), 5); Assert.assertEquals(resolution.getResolutions(), Lists.newArrayList(5, 6, 13)); } + + @Test + public void serde() + throws JsonProcessingException { + H3IndexConfig initialConf = new H3IndexConfig(new H3IndexResolution(Lists.newArrayList(5, 6, 13))); + + String confAsJson = JsonUtils.objectToString(initialConf); + Assert.assertEquals(confAsJson, "{\"disabled\":false,\"resolution\":[5,6,13]}"); Review Comment: We would need to add a custom serializer and deserializer, but it is possible. -- 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: commits-unsubscr...@pinot.apache.org 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