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 2020/05/16 09:26:03 UTC

[GitHub] [incubator-pinot] Manoj-Singh-11 commented on a change in pull request #5403: fixing template argument if not specify values

Manoj-Singh-11 commented on a change in pull request #5403:
URL: https://github.com/apache/incubator-pinot/pull/5403#discussion_r426132765



##########
File path: pinot-spi/src/main/java/org/apache/pinot/spi/utils/GroovyTemplateUtils.java
##########
@@ -57,6 +57,9 @@ public static String renderTemplate(String template, Map<String, Object> newCont
   }
 
   public static Map<String, Object> getTemplateContext(List<String> values) {
+    if (values == null) {

Review comment:
       We should update IngestionJobLauncher.getSegmentGenerationJobSpec()
   Line #57,   if (context != null) {
         propertiesMap.putAll(context);
       }
   We should check not null and empty. As you are passing empty map incase of values is null.




----------------------------------------------------------------
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:
users@infra.apache.org



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