You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2021/10/17 00:29:24 UTC

[GitHub] [pinot] walterddr commented on a change in pull request #7583: add toList to JsonUtils

walterddr commented on a change in pull request #7583:
URL: https://github.com/apache/pinot/pull/7583#discussion_r729920407



##########
File path: pinot-spi/src/main/java/org/apache/pinot/spi/utils/JsonUtils.java
##########
@@ -82,6 +82,12 @@ private JsonUtils() {
     return DEFAULT_READER.forType(valueTypeRef).readValue(jsonString);
   }
 
+  public static <T> List<T> stringToList(String jsonString, Class<T> valueType)

Review comment:
       dont know where to add test the best, it doesn't seem like the others are tested individually either. 

##########
File path: pinot-spi/src/main/java/org/apache/pinot/spi/utils/JsonUtils.java
##########
@@ -82,6 +82,12 @@ private JsonUtils() {
     return DEFAULT_READER.forType(valueTypeRef).readValue(jsonString);
   }
 
+  public static <T> List<T> stringToList(String jsonString, Class<T> valueType)

Review comment:
       sounds good. I take this as ok to create a separate test file entirely to cover the non-tested JsonUtils functions. will do it soon




-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org