Skip to content

Fixed generated SQL MSSQL dialect when all columns are also primary keys - #46380

Merged
potiuk merged 5 commits into
apache:mainfrom
dabla:fix/mssql-dialet-replace-sql
Feb 5, 2025
Merged

potiuk merged 5 commits into
apache:mainfrom
dabla:fix/mssql-dialet-replace-sql

Conversation

@dabla

@dabla dabla commented Feb 3, 2025

Copy link
Copy Markdown
Contributor

This PR fixes the case when all columns are also primary keys when generating the replace SQL statement for MS SQL.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@eladkal

eladkal commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

@dabla

dabla commented Feb 5, 2025

Copy link
Copy Markdown
Contributor Author

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

NICE!

@potiuk
potiuk merged commit ddce845 into apache:main Feb 5, 2025
insomnes pushed a commit to insomnes/airflow that referenced this pull request Feb 6, 2025
…eys (apache#46380)

* refactor: Fixed case when all columns are part of primary key when generated replace sql statement for MSSQL

* refactor: Reformatted TestMsSqlDialect

* refactor: Reformatted create_db_api_hook

---------

Co-authored-by: David Blain <david.blain@infrabel.be>
niklasr22 pushed a commit to niklasr22/airflow that referenced this pull request Feb 8, 2025
…eys (apache#46380)

* refactor: Fixed case when all columns are part of primary key when generated replace sql statement for MSSQL

* refactor: Reformatted TestMsSqlDialect

* refactor: Reformatted create_db_api_hook

---------

Co-authored-by: David Blain <david.blain@infrabel.be>
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 17, 2025
…eys (apache#46380)

* refactor: Fixed case when all columns are part of primary key when generated replace sql statement for MSSQL

* refactor: Reformatted TestMsSqlDialect

* refactor: Reformatted create_db_api_hook

---------

Co-authored-by: David Blain <david.blain@infrabel.be>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants