-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update limit pushdown for Oracle #26926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update limit pushdown for Oracle #26926
Conversation
As Trino no longer supports Oracle version 11, update limit pushdown from the older Oracle version (<=11) "ROWNUM <= number" syntax to the newer (>=12) "FETCH FIRST number ROWS ONLY" syntax.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe PR refactors the Oracle connector’s limit pushdown to use the newer SQL standard FETCH FIRST syntax instead of the legacy ROWNUM approach, updating the limitFunction implementation accordingly. Class diagram for updated OracleClient limitFunctionclassDiagram
class OracleClient {
+Optional<BiFunction<String, Long, String>> limitFunction()
}
OracleClient : limitFunction() now returns SQL using "FETCH FIRST ... ROWS ONLY" syntax
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When and where should we update the release note @findepi |
i don't think a RN is needed. AFAICT Oracle 11 was already not supported, this PR is just a code refactor. |
Update limit pushdown for Oracle
Change appeared after discussion on PR #26688
which is a fix for issue: Support TopN pushdown for Oracle connector #26566
Description
As Trino no longer supports Oracle version 11,
update limit pushdown from the older Oracle version (<=11) "ROWNUM <= number" syntax to the newer (>=12) "FETCH FIRST number ROWS ONLY" syntax.
Additional context and related issues
Release notes
(x) This is not user-visible or is docs only, and no release notes are required.
Summary by Sourcery
Enhancements: