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

Use DbApiHook's split_sql_string instead of snowflake utility in amazon provider #1260

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

pankajkoti
Copy link
Collaborator

Currently, the redshift_data hook in the Amazon provider has
a dependency on snowflake for it's utility to split sql strings.
The PR removes this need by instead using the DbApiHook's
split_sql_string which reliably parses the sql strings for us.

closes: #1259

…on provider

Currently, the redshift_data hook in the Amazon provider relies
has a dependency on snowflake for it's utility to split sql string.
The PR removes this need by instead using the DbApiHook's
split_sql_string which reliably parses the sql strings for us.

closes: #1259
@pankajkoti
Copy link
Collaborator Author

Verified that our Redshift SQL example DAG which passes sql strings in various formats runs well.

Screenshot 2023-07-26 at 10 11 03 AM

@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01% ⚠️

Comparison is base (3666c5d) 98.57% compared to head (e361fff) 98.57%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1260      +/-   ##
==========================================
- Coverage   98.57%   98.57%   -0.01%     
==========================================
  Files          90       90              
  Lines        5396     5393       -3     
==========================================
- Hits         5319     5316       -3     
  Misses         77       77              
Files Changed Coverage Δ
...onomer/providers/amazon/aws/hooks/redshift_data.py 99.21% <100.00%> (-0.02%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@phanikumv phanikumv merged commit cef2a73 into main Jul 26, 2023
2 checks passed
@phanikumv phanikumv deleted the replace-snowflake-dependency-from-amazon-provider branch July 26, 2023 05:15
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.

snowflake not included in the extras_require of amazon extra
4 participants