Skip to content

fix to manual parse a query string to cast varchar column input value…#63

Open
sachinsagare wants to merge 3 commits into
druid_main_version_2from
druid_main_version_2_string_parse_change
Open

fix to manual parse a query string to cast varchar column input value…#63
sachinsagare wants to merge 3 commits into
druid_main_version_2from
druid_main_version_2_string_parse_change

Conversation

@sachinsagare
Copy link
Copy Markdown

@sachinsagare sachinsagare commented Nov 16, 2022

changes to manual parse a query string to cast varchar column input values into single quotes. This should be temporary fix, and we need to request client to use single quote for all varchar columns in where clause.

Signed-off-by: ssagare ssagare@pinterest.com

Fixes #XXXX.

Description

Fixed the bug ...

Renamed the class ...

Added a forbidden-apis entry ...

Release note

For tips about how to write a good release note, see Release notes.


Key changed/added classes in this PR
  • MyFoo
  • OurBar
  • TheirBaz

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

…s in single quotes. This should be temporary fix, and we need to request client to use single quote for all varchar columns in where clause.

Signed-off-by: ssagare <ssagare@pinterest.com>
@sachinsagare sachinsagare requested a review from itallam November 16, 2022 17:30
Signed-off-by: ssagare <ssagare@pinterest.com>
…tatype, so removed column type validation logic to allow code to append single quotes to all the where conditions.

Signed-off-by: ssagare <ssagare@pinterest.com>
@@ -4362,7 +4362,7 @@ public void testFilterOnStringAsNumber() throws Exception
)
.setDimFilter(
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some Unit tests for your changes. The Unit test should contain some expected queries passing and some expected queries failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants