Github user nickwallen commented on a diff in the pull request:

    https://github.com/apache/metron/pull/763#discussion_r139223469
  
    --- Diff: 
metron-platform/metron-elasticsearch/src/main/java/org/apache/metron/elasticsearch/dao/ElasticsearchMetaAlertDao.java
 ---
    @@ -275,13 +275,13 @@ protected Document 
buildCreateDocument(MultiGetResponse multiGetResponse, List<S
             alertList.add(response.getSource());
           }
         }
    -    metaSource.put(ALERT_FIELD, alertList.toArray());
    +    metaSource.put(ALERT_FIELD, alertList);
    --- End diff --
    
    @justinleet  "The alerts field can actually come as two different types 
List<Object> vs Object[] during calculation of meta score fields."
    
    
    Your changes here seem simple enough.  Before we used arrays, now using 
Lists.  But I am not following how this solves the problem you describe in 
JIRA.  
    
    Where is the code that would handle/transform/standardize items that come 
in as either Array or List? 


---

Reply via email to