branch-3.0: [Fix](PreparedStatement) fix incorrect query result with prepared statement #46994#47011
Merged
eldenmoon merged 1 commit intobranch-3.0from Jan 15, 2025
Merged
Conversation
…tement (#46994) This pull request includes several changes to improve the handling of placeholders and prepared statements, as well as some minor code adjustments and additions to test cases. ### Improvements to Placeholder Handling: * Added an `equals` method to the `Placeholder` class to allow comparison of `Placeholder` objects.Otherwise `between ? and ?` which is between predicate, will be rewriten to `= ?` which is equal predicate ### Enhancements to Prepared Statements: * Added multiple test cases to validate the functionality of prepared statements with various data types and structures, including arrays, maps, and structs. ### Minor Code Adjustments: * Incremented `_field_pos` in `open_dynamic_mode` method of `MysqlRowBuffer` class to ensure correct position tracking.
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
|
run buildall |
TPC-H: Total hot run time: 41480 ms |
TPC-DS: Total hot run time: 192627 ms |
ClickBench: Total hot run time: 32.32 s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-picked from #46994