Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Conversation

@sunank200
Copy link
Contributor

@sunank200 sunank200 commented Nov 29, 2022

Description

What is the current behavior?

  • Add the NATIVE_LOAD_EXCEPTIONS to BaseDatabase as it is being overloaded.

related to #1312 as change was not correct

What is the new behavior?

  • Add the NATIVE_LOAD_EXCEPTIONS to BaseDatabase as it is being overloaded.

Does this introduce a breaking change?

No

Checklist

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

@sunank200 sunank200 changed the title Revert back and add NATIVE_LOAD_EXCEPTIONS Add NATIVE_LOAD_EXCEPTIONS to BaseDatabase as it is being overloaded Nov 29, 2022
@codecov
Copy link

codecov bot commented Nov 29, 2022

Codecov Report

Base: 95.71% // Head: 95.00% // Decreases project coverage by -0.71% ⚠️

Coverage data is based on head (4538aa7) compared to base (279c7d1).
Patch coverage: 76.92% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1324      +/-   ##
==========================================
- Coverage   95.71%   95.00%   -0.72%     
==========================================
  Files          19       71      +52     
  Lines         677     3304    +2627     
  Branches       68      381     +313     
==========================================
+ Hits          648     3139    +2491     
- Misses         18      101      +83     
- Partials       11       64      +53     
Impacted Files Coverage Δ
python-sdk/src/astro/databases/snowflake.py 95.49% <70.00%> (ø)
python-sdk/src/astro/databases/base.py 96.15% <100.00%> (ø)
python-sdk/src/astro/table.py 100.00% <0.00%> (ø)
python-sdk/src/astro/__init__.py 100.00% <0.00%> (ø)
python-sdk/src/astro/constants.py 92.50% <0.00%> (ø)
python-sdk/src/astro/utils/load.py 92.30% <0.00%> (ø)
python-sdk/src/astro/files/types/base.py 76.92% <0.00%> (ø)
python-sdk/src/astro/files/locations/local.py 100.00% <0.00%> (ø)
python-sdk/src/astro/utils/typing_compat.py 100.00% <0.00%> (ø)
python-sdk/src/astro/databases/google/bigquery.py 94.56% <0.00%> (ø)
... and 44 more

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.

@kaxil kaxil merged commit 0c64f48 into main Nov 29, 2022
@kaxil kaxil deleted the fix-exception-handling branch November 29, 2022 19:35
potiuk added a commit to potiuk/airflow that referenced this pull request Nov 29, 2022
The change apache#27912 fixed and unified behaviour of DBApiHooks
across the board, but it missed two places where sql was mis-used
and overridden in exasol and snowflake hooks.

The check for "sql" type did not use the original sql parameter
value but the one that was overridden later in the run method
implementation.

The fix is the same as applied in Databricks Hook and DBAPI
generic run methods - using consistent typing and separate
variable to convert the sql string into sql list.

Related: astronomer/astro-sdk#1324
potiuk added a commit to apache/airflow that referenced this pull request Nov 30, 2022
…27997)

The change #27912 fixed and unified behaviour of DBApiHooks
across the board, but it missed two places where sql was mis-used
and overridden in exasol and snowflake hooks.

The check for "sql" type did not use the original sql parameter
value but the one that was overridden later in the run method
implementation.

The fix is the same as applied in Databricks Hook and DBAPI
generic run methods - using consistent typing and separate
variable to convert the sql string into sql list.

Related: astronomer/astro-sdk#1324
@sunank200 sunank200 added this to the 1.3.0 milestone Dec 1, 2022
jrggggg pushed a commit to jrggggg/airflow that referenced this pull request Dec 1, 2022
…pache#27997)

The change apache#27912 fixed and unified behaviour of DBApiHooks
across the board, but it missed two places where sql was mis-used
and overridden in exasol and snowflake hooks.

The check for "sql" type did not use the original sql parameter
value but the one that was overridden later in the run method
implementation.

The fix is the same as applied in Databricks Hook and DBAPI
generic run methods - using consistent typing and separate
variable to convert the sql string into sql list.

Related: astronomer/astro-sdk#1324
sunank200 added a commit that referenced this pull request Dec 1, 2022
#1324)

# Description
## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->
- Add the `NATIVE_LOAD_EXCEPTIONS` to BaseDatabase as it is being
overloaded.

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

closes: #ISSUE
related: #ISSUE
-->
related to #1312 as change
was not correct

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

- Add the `NATIVE_LOAD_EXCEPTIONS` to BaseDatabase as it is being
overloaded.

## 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

(cherry picked from commit 0c64f48)
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Mar 30, 2023
…#27997)

The change #27912 fixed and unified behaviour of DBApiHooks
across the board, but it missed two places where sql was mis-used
and overridden in exasol and snowflake hooks.

The check for "sql" type did not use the original sql parameter
value but the one that was overridden later in the run method
implementation.

The fix is the same as applied in Databricks Hook and DBAPI
generic run methods - using consistent typing and separate
variable to convert the sql string into sql list.

Related: astronomer/astro-sdk#1324
GitOrigin-RevId: 2e7a4bcb550538283f28550208b01515d348fb51
ahidalgob pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Nov 7, 2023
…#27997)

The change #27912 fixed and unified behaviour of DBApiHooks
across the board, but it missed two places where sql was mis-used
and overridden in exasol and snowflake hooks.

The check for "sql" type did not use the original sql parameter
value but the one that was overridden later in the run method
implementation.

The fix is the same as applied in Databricks Hook and DBAPI
generic run methods - using consistent typing and separate
variable to convert the sql string into sql list.

Related: astronomer/astro-sdk#1324
GitOrigin-RevId: 2e7a4bcb550538283f28550208b01515d348fb51
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 19, 2024
…#27997)

The change #27912 fixed and unified behaviour of DBApiHooks
across the board, but it missed two places where sql was mis-used
and overridden in exasol and snowflake hooks.

The check for "sql" type did not use the original sql parameter
value but the one that was overridden later in the run method
implementation.

The fix is the same as applied in Databricks Hook and DBAPI
generic run methods - using consistent typing and separate
variable to convert the sql string into sql list.

Related: astronomer/astro-sdk#1324
GitOrigin-RevId: 2e7a4bcb550538283f28550208b01515d348fb51
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Nov 8, 2024
…#27997)

The change #27912 fixed and unified behaviour of DBApiHooks
across the board, but it missed two places where sql was mis-used
and overridden in exasol and snowflake hooks.

The check for "sql" type did not use the original sql parameter
value but the one that was overridden later in the run method
implementation.

The fix is the same as applied in Databricks Hook and DBAPI
generic run methods - using consistent typing and separate
variable to convert the sql string into sql list.

Related: astronomer/astro-sdk#1324
GitOrigin-RevId: 2e7a4bcb550538283f28550208b01515d348fb51
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request May 3, 2025
…#27997)

The change #27912 fixed and unified behaviour of DBApiHooks
across the board, but it missed two places where sql was mis-used
and overridden in exasol and snowflake hooks.

The check for "sql" type did not use the original sql parameter
value but the one that was overridden later in the run method
implementation.

The fix is the same as applied in Databricks Hook and DBAPI
generic run methods - using consistent typing and separate
variable to convert the sql string into sql list.

Related: astronomer/astro-sdk#1324
GitOrigin-RevId: 2e7a4bcb550538283f28550208b01515d348fb51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants