Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14403

random() stream blows up on "with explanation" turned on

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 8.5
    • None
    • streaming expressions
    • None

    Description

      the random streaming expression is actually a facade, that wraps either a RandomStream.java or DeepRandomStream.java.

      A query that translates to RandomStream (i.e under 5000) gives this error:

      "Unable to find function name for class 'org.apache.solr.client.solrj.io.stream.RandomStream'".

      The class that is being registered in StreamFactory is the "random":"org.apache.solr.client.solrj.io.stream.RandomFacadeStream".

      DeepRandomStream has the function name "random" hard coded, and we could just do that on the RandomStream as well..? Alternatively, we could change up both DeepRandomSTream and RandomStream to look up the function name using the class RandomFacadeStream.

      Attachments

        Activity

          People

            Unassigned Unassigned
            epugh Eric Pugh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: