[ 
https://issues.apache.org/jira/browse/SOLR-16750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17810986#comment-17810986
 ] 

Christine Poerschke commented on SOLR-16750:
--------------------------------------------

Here's details on the undistributed search test failure -- {{./gradlew -p 
solr/core test --tests TestGroupingSearch}} -- and note that in the 
https://github.com/apache/solr/blob/main/solr/core/src/test-files/solr/collection1/conf/enumsConfig.xml
 file the 'Low' enum is the second value, so assuming counting from 0 it seems 
the result is partially correct but there's number-to-enum-or-string conversion 
issue of some sort.

{code}
org.apache.solr.TestGroupingSearch > testGroupingOnEnumField FAILED
    java.lang.RuntimeException: mismatch: 'Low'!='1' @ 
grouped/severity/groups/[0]/groupValue
        at 
__randomizedtesting.SeedInfo.seed([1CB4CF096FC0E8DF:72EF51890205CFBF]:0)
        at org.apache.solr.SolrTestCaseJ4.assertJQ(SolrTestCaseJ4.java:1113)
        at org.apache.solr.SolrTestCaseJ4.assertJQ(SolrTestCaseJ4.java:1060)
        at 
org.apache.solr.TestGroupingSearch.testGroupingOnEnumField(TestGroupingSearch.java:1590)
{code}

> Grouping on EnumFieldType fields fails
> --------------------------------------
>
>                 Key: SOLR-16750
>                 URL: https://issues.apache.org/jira/browse/SOLR-16750
>             Project: Solr
>          Issue Type: Bug
>          Components: Grouping
>            Reporter: Tomas Eduardo Fernandez Lobbe
>            Priority: Minor
>              Labels: newdev
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> For single shard collections, Solr responds with the enum index instead of 
> the value. For multi-shard collections, Solr returns a 500 because internally 
> it gets a ClassCastException such as:
> {noformat}
> java.lang.ClassCastException: class org.apache.solr.common.EnumFieldValue 
> cannot be cast to class java.lang.Integer
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to