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

Handle identity columns properly in the router planner #6802

Merged
merged 2 commits into from Mar 29, 2023
Merged

Conversation

gokhangulbiz
Copy link
Contributor

DESCRIPTION: Fixes a bug with insert..select queries with identity columns
Fixes #6798

@gokhangulbiz gokhangulbiz marked this pull request as ready for review March 29, 2023 08:16
@codecov
Copy link

codecov bot commented Mar 29, 2023

Codecov Report

Merging #6802 (b50c273) into main (3750080) will increase coverage by 0.29%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #6802      +/-   ##
==========================================
+ Coverage   92.86%   93.16%   +0.29%     
==========================================
  Files         262      262              
  Lines       56375    56377       +2     
==========================================
+ Hits        52354    52522     +168     
+ Misses       4021     3855     -166     

/* check if the node contains an identity column */
if (IsA(node, NextValueExpr))
{
return true;
Copy link
Member

Choose a reason for hiding this comment

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

makes sense, but could use a test

@gokhangulbiz gokhangulbiz merged commit e618345 into main Mar 29, 2023
111 checks passed
@gokhangulbiz gokhangulbiz deleted the issue/6798 branch March 29, 2023 12:50
gokhangulbiz added a commit that referenced this pull request Mar 30, 2023
DESCRIPTION: Fixes a bug with insert..select queries with identity
columns
Fixes #6798

(cherry picked from commit e618345)
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.

Insert..select queries which use generated identities can get pushed down
3 participants