rnewson commented on issue #5453: URL: https://github.com/apache/couchdb/issues/5453#issuecomment-2700416109
Thank you for the report, unfortunately I cannot reproduce the error locally. the badarith seems to be part of the base64 encoding process which implies something interesting about what is being encoded. I don't think it's about the number of items in the sort order, that just happens to trigger a bug elsewhere. Could you provide some sample docs? I made one up based on your index function and I don't see how the details could matter, but clearly there's a difference between my setup and yours. ``` curl -g 'http://foo:bar@localhost:15984/db1/_design/foo/_nouveau/foo?q=*:*&sort=["dead","muted","contact_type_index","name"]' | jq { "update_latency": 3, "total_hits_relation": "EQUAL_TO", "total_hits": 1, "ranges": null, "hits": [ { "order": [ { "value": "true", "@type": "string" }, { "value": "false", "@type": "string" }, { "value": "2", "@type": "string" }, { "value": "foo", "@type": "string" }, { "value": "doc1", "@type": "string" } ], "id": "doc1", "fields": {} } ], "counts": null, "bookmark": "W1t7InZhbHVlIjoidHJ1ZSIsIkB0eXBlIjoic3RyaW5nIn0seyJ2YWx1ZSI6ImZhbHNlIiwiQHR5cGUiOiJzdHJpbmcifSx7InZhbHVlIjoiMiIsIkB0eXBlIjoic3RyaW5nIn0seyJ2YWx1ZSI6ImZvbyIsIkB0eXBlIjoic3RyaW5nIn0seyJ2YWx1ZSI6ImRvYzEiLCJAdHlwZSI6InN0cmluZyJ9XV0=" } ``` -- 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: notifications-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org