Susheel Kumar created SOLR-10945: ------------------------------------ Summary: Get expression fails to operate on sort expr Key: SOLR-10945 URL: https://issues.apache.org/jira/browse/SOLR-10945 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Components: search Affects Versions: 6.6 Reporter: Susheel Kumar Priority: Minor
Get expr fails to operate on a variable which has sort stream and returns "Invalid MergeStream - all substream comparators (sort) must be a superset of this stream's comparator." Exception tuple. Below get is given variable a and b which are having sort expr and fails to work == let( a=sort(select(tuple(id=3,email="C"),id,email),by="id asc,email asc"), b=sort(select(tuple(id=2,email="B"),id,email),by="id asc,email asc"), c=merge(get(a),get(b),on="id asc,email asc"), get(c) ) { "result-set": { "docs": [ { "EXCEPTION": "Invalid MergeStream - all substream comparators (sort) must be a superset of this stream's comparator.", "EOF": true } ] } } while below sort outside get works == let( a=select(tuple(id=3,email="C"),id,email), b=select(tuple(id=2,email="B"),id,email), c=merge(sort(get(a),by="id asc,email asc"),sort(get(b),by="id asc,email asc"), on="id asc,email asc"), get(c) ) { "result-set": { "docs": [ { "email": "B", "id": "2" }, { "email": "C", "id": "3" }, { "EOF": true, "RESPONSE_TIME": 0 } ] } } -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org