Skip to content
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

parse query when counting joins #453

Merged
merged 1 commit into from
Apr 13, 2021
Merged

Conversation

MRoci
Copy link
Contributor

@MRoci MRoci commented Nov 28, 2020

This PR modifies the num_joins logic, instead of counting the occurences of the string join it parses the query in order to exclude all the tokens that are not SQL Keyword such as column Identifiers or String Literals.
This can be useful in order to avoid false positives

parse query with sqlparse when counting joins so false positive where
then `join` word appears as an Identifier or as a Literal
@MRoci
Copy link
Contributor Author

MRoci commented Mar 8, 2021

hey @nasirhjafri ,
May I ask if you have updates if this PR can be merged or some changes are needed?

Thank you!

Copy link
Contributor

@auvipy auvipy left a comment

Choose a reason for hiding this comment

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

will wait for another eye

@auvipy auvipy merged commit 30eccfe into jazzband:master Apr 13, 2021
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