akshat-lakhera opened a new pull request, #27959: URL: https://github.com/apache/datafusion/pull/27959
## Which issue does this PR close? - Closes #27813. ## Rationale for this change The internal error "Ordering direction required for DISTINCT with limit" from #27813 is already resolved on main, but main has no sqllogictest regression coverage for DISTINCT + LIMIT over a filtered row_number() subquery. ## What changes are included in this PR? Add two regression queries to datafusion/sqllogictest/test_files/aggregate.slt covering SELECT DISTINCT ... LIMIT over a row_number() OVER (...) subquery with WHERE rn = 1. ## What is the testing strategy for this PR? cargo test -p datafusion-sqllogictest --test sqllogictests -- aggregate.slt passed. ## Are there any user-facing changes? No. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
