You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/05/20 09:07:11 UTC

[GitHub] [solr] janhoy commented on a diff in pull request #828: SOLR-12457: improve compatibility/support for sort by field-function

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: issues-unsubscribe@solr.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org