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 instance and improve code coverage #873

Closed
sunank200 opened this issue Sep 16, 2022 · 0 comments · Fixed by #872
Closed

Check for filetype instance and improve code coverage #873

sunank200 opened this issue Sep 16, 2022 · 0 comments · Fixed by #872
Assignees

Comments

@sunank200
Copy link
Contributor

Describe the bug
Currently source_filetype in https://github.com/astronomer/astro-sdk/blob/main/python-sdk/src/astro/databases/base.py#L751 is a key value pair instead of Filetype.

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

@sunank200 sunank200 self-assigned this Sep 16, 2022
sunank200 added a commit that referenced this issue Sep 17, 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>
utkarsharma2 pushed a commit that referenced this issue 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 issue 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 issue 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 a pull request may close this issue.

1 participant