-
Notifications
You must be signed in to change notification settings - Fork 961
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
fixing where clause issue in redshift_metadata_extractor #2217
base: main
Are you sure you want to change the base?
Conversation
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.
I had a small suggestion for the change, and in addition to that you had one failing test and need to sign your commit(s) and then should be good to go
where_clause_suffix = where_clause_suffix.lstrip() | ||
if where_clause_suffix.lower().startswith("where"): |
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.
thanks for making the change, I would suggest including it on the same line to make it cleaner
where_clause_suffix = where_clause_suffix.lstrip() | |
if where_clause_suffix.lower().startswith("where"): | |
if where_clause_suffix.lstrip().lower().startswith("where"): |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
ping @amarshinde150 any updates on this one? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Leading whitespaces causing errors with startsWith() python method, so using lstrip() before starts with will resolve the error