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

Fix for Order by issue in select into statement with identity function #247

Conversation

deepakshi-mittal
Copy link
Contributor

@deepakshi-mittal deepakshi-mittal commented Nov 2, 2023

This commit removes unwanted fields identityName, identityType and related hook
Added hook to move identity function at the end of target list

Task: BABEL-4388

Description

Reverted

Issues Resolved

BABEL-4388

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the PostgreSQL license, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This commit removes unwanted fields identityName, identityType
and related hook

Task: BABEL-4388

Signed-off-by: Deepakshi Mittal <[email protected]>
Task: BABEL-4388

Signed-off-by: Deepakshi Mittal <[email protected]>
@deepakshi-mittal deepakshi-mittal changed the title Correct Order by behavior in select into statement in Babelfish Fix for Order by issue in select into statement with identity function Nov 7, 2023
Task: BABEL-4388

Signed-off-by: Deepakshi Mittal <[email protected]>
Copy link
Contributor

@forestkeeper forestkeeper left a comment

Choose a reason for hiding this comment

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

LGTM

@forestkeeper forestkeeper merged commit 07b6b40 into babelfish-for-postgresql:BABEL_3_X_DEV__PG_15_X Nov 8, 2023
2 checks passed
forestkeeper pushed a commit to babelfish-for-postgresql/babelfish_extensions that referenced this pull request Nov 8, 2023
#1967)


Modified transformSelectIntoStmt, remove unused variable queryString
Modified SortClause and Distinct Clause of select into, removed identity function if exists in it
Added alter table add identity statement which will be executed after select into statement
Added IsA check for SortGroupClause
Removed unused variable tsql_select_into_seq_oid
Removed smallint and int functions,
Dropped function objects from upgrade scripts
Used strcasecmp inplace of strncasecmp

Added test cases for select into identity with

top clause
distinct clause
order by clause

Engine Pr:babelfish-for-postgresql/postgresql_modified_for_babelfish#247

Task: BABEL-4388, BABEL-539
Signed-off-by: Deepakshi Mittal <[email protected]>
Sairakan pushed a commit to amazon-aurora/postgresql_modified_for_babelfish that referenced this pull request Nov 16, 2023
babelfish-for-postgresql#247)


Modified transformSelectIntoStmt, remove unused variable queryString
Modified SortClause and Distinct Clause of select into, removed identity function if exists in it
Added alter table add identity statement which will be executed after select into statement
Added IsA check for SortGroupClause
Removed unused variable tsql_select_into_seq_oid
Removed smallint and int functions,
Dropped function objects from upgrade scripts
Used strcasecmp inplace of strncasecmp

Added test cases for select into identity with

top clause
distinct clause
order by clause

Engine Pr:babelfish-for-postgresql#247

Task: BABEL-4388, BABEL-539
Signed-off-by: Deepakshi Mittal <[email protected]>
Sairakan pushed a commit to amazon-aurora/postgresql_modified_for_babelfish that referenced this pull request Nov 17, 2023
babelfish-for-postgresql#247)


Modified transformSelectIntoStmt, remove unused variable queryString
Modified SortClause and Distinct Clause of select into, removed identity function if exists in it
Added alter table add identity statement which will be executed after select into statement
Added IsA check for SortGroupClause
Removed unused variable tsql_select_into_seq_oid
Removed smallint and int functions,
Dropped function objects from upgrade scripts
Used strcasecmp inplace of strncasecmp

Added test cases for select into identity with

top clause
distinct clause
order by clause

Engine Pr:babelfish-for-postgresql#247

Task: BABEL-4388, BABEL-539
Signed-off-by: Deepakshi Mittal <[email protected]>
priyansx pushed a commit to amazon-aurora/postgresql_modified_for_babelfish that referenced this pull request Nov 22, 2023
babelfish-for-postgresql#247)


Modified transformSelectIntoStmt, remove unused variable queryString
Modified SortClause and Distinct Clause of select into, removed identity function if exists in it
Added alter table add identity statement which will be executed after select into statement
Added IsA check for SortGroupClause
Removed unused variable tsql_select_into_seq_oid
Removed smallint and int functions,
Dropped function objects from upgrade scripts
Used strcasecmp inplace of strncasecmp

Added test cases for select into identity with

top clause
distinct clause
order by clause

Engine Pr:babelfish-for-postgresql#247

Task: BABEL-4388, BABEL-539
Signed-off-by: Deepakshi Mittal <[email protected]>
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.

3 participants