janhoy commented on code in PR #828:
URL: https://github.com/apache/solr/pull/828#discussion_r877916321


##########
solr/core/src/test/org/apache/solr/TestDistributedGrouping.java:
##########
@@ -1652,6 +1653,39 @@ public void test() throws Exception {
         i1,
         "debug",
         "true");
+
+    // Grouping with child doc and childValue() function
+    SolrInputDocument parent = new SolrInputDocument("id", "1", "class_s1", 
"parent");
+    SolrInputDocument child =
+        new SolrInputDocument("id", "2", "class_s1", "child", "value_s1", 
"abc123");
+    parent.addChildDocument(child);
+    indexDoc(parent);
+    commit();
+
+    // Distributed grouping with sort on a string field in child document
+    // Crashes with java.lang.ClassCastException: class java.lang.String 
cannot be cast to class
+    // org.apache.lucene.util.BytesRef
+    // during TopGroupsResultTransformer.serializeTopGroups()
+    // in org.apache.solr.schema.FieldType.marshalStringSortValue(

Review Comment:
   Thanks



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to