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

Check for filetype only for pattern and fix coverage #872

Merged
merged 11 commits into from
Sep 17, 2022
Merged

Conversation

sunank200
Copy link
Contributor

@sunank200 sunank200 commented Sep 16, 2022

Description

What is the current behavior?

Currently is filetype is passed then pattern doesn't need to be resolved to check native autodetect

closes: #873

What is the new behavior?

  • Create file type in case not provided before checking for native autodetect schema

Does this introduce a breaking change?

No

Checklist

  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary

@codecov
Copy link

codecov bot commented Sep 16, 2022

Codecov Report

Base: 93.12% // Head: 93.17% // Increases project coverage by +0.05% 🎉

Coverage data is based on head (81dcaf9) compared to base (07c27c0).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #872      +/-   ##
==========================================
+ Coverage   93.12%   93.17%   +0.05%     
==========================================
  Files          47       47              
  Lines        2095     2096       +1     
  Branches      268      268              
==========================================
+ Hits         1951     1953       +2     
  Misses        109      109              
+ Partials       35       34       -1     
Impacted Files Coverage Δ
python-sdk/src/astro/databases/base.py 96.31% <100.00%> (+2.13%) ⬆️
python-sdk/src/astro/databases/google/bigquery.py 92.17% <0.00%> (-1.68%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sunank200 sunank200 self-assigned this Sep 16, 2022
@sunank200 sunank200 merged commit d5cd45e into main Sep 17, 2022
@sunank200 sunank200 deleted the fix-coverage branch September 17, 2022 00:28
utkarsharma2 pushed a commit that referenced this pull request Sep 19, 2022
# Description
## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->
Currently is filetype is passed then pattern doesn't need to be resolved
to check native autodetect

<!--
Issues are required for both bug fixes and features.
Reference it using one of the following:

closes: #ISSUE
related: #ISSUE
-->
closes: #873


## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Create file type in case not provided before checking for native
autodetect schema


## Does this introduce a breaking change?
No

### Checklist
- [x] Created tests which fail without the change (if possible)
- [x] Extended the README / documentation, if necessary

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
kaxil added a commit that referenced this pull request Sep 19, 2022
# Description
## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->
Currently is filetype is passed then pattern doesn't need to be resolved
to check native autodetect

<!--
Issues are required for both bug fixes and features.
Reference it using one of the following:

closes: #ISSUE
related: #ISSUE
-->
closes: #873


## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Create file type in case not provided before checking for native
autodetect schema


## Does this introduce a breaking change?
No

### Checklist
- [x] Created tests which fail without the change (if possible)
- [x] Extended the README / documentation, if necessary

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
kaxil added a commit that referenced this pull request Sep 19, 2022
# Description
## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->
Currently is filetype is passed then pattern doesn't need to be resolved
to check native autodetect

<!--
Issues are required for both bug fixes and features.
Reference it using one of the following:

closes: #ISSUE
related: #ISSUE
-->
closes: #873


## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Create file type in case not provided before checking for native
autodetect schema


## Does this introduce a breaking change?
No

### Checklist
- [x] Created tests which fail without the change (if possible)
- [x] Extended the README / documentation, if necessary

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
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.

Check for filetype instance and improve code coverage
2 participants