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

fixed where #2216

Closed
Closed

Conversation

amrshindhe
Copy link

fixing where clause problem in redshift_metadata_extractor.py

Description

Motivation and Context

How Has This Been Tested?

Documentation

CheckList

  • PR title addresses the issue accurately and concisely
  • Updates Documentation and Docstrings
  • Adds tests
  • Adds instrumentation (logs, or UI events)

fixing where clause problem in redshift_metadata_extractor.py
@amrshindhe amrshindhe requested a review from a team as a code owner November 28, 2023 11:34
@boring-cyborg boring-cyborg bot added the area:databuilder From databuilder folder label Nov 28, 2023
Copy link

boring-cyborg bot commented Nov 28, 2023

Congratulations on your first Pull Request and welcome to Amundsen community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/amundsen-io/amundsen/blob/main/CONTRIBUTING.md)

@@ -29,7 +29,7 @@ def get_sql_statement(self, use_catalog_as_cluster_name: bool, where_clause_suff
cluster_source = f"'{self._cluster}'"

if where_clause_suffix:
if where_clause_suffix.lower().startswith("where"):
if "where" in where_clause_suffix.lower():
Copy link
Contributor

Choose a reason for hiding this comment

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

is this change in case there is leading whitespace? I'd recommend instead using lstrip() if so, and then you can still check that the string starts with where

Copy link

stale bot commented Dec 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Dec 15, 2023
@Alagappan
Copy link
Contributor

This looks like a duplicate of #2217. Closing this one.

@Alagappan Alagappan closed this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:databuilder From databuilder folder stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants