-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed internal error in pinot queries caused due to question mark (?)…
… in query parameter. (#73) Pinot PreparedStatement creates invalid query if one of the parameters has '?' in its value. Sample pinot query : `select * from table where team in (?, ?, ?)`.. Now say parameters are: 'abc', 'pqr with (?)' and 'xyz'.. Now, on executing PreparedStatement:fillStatementWithParameters method on this will return `select * from table where team in ('abc', 'pqr with ('xyz')', ?)` -- which is clearly wrong (what we wanted was `select * from table where team in ('abc', 'pqr with (?)', 'xyz')`).. The reason is the usage of replaceFirst iteration in the pinot PreparedStatement method.. Hence written a custom method to resolve the query statement rather than relying on Pinot's library method. Also raised an issue in incubator-pinot github repo: apache/pinot#6834
- Loading branch information
1 parent
b67c30d
commit 1a80901
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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