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

Ignore INLINE option in CREATE FUNCTION #3555

Open
wants to merge 1 commit into
base: BABEL_5_X_DEV
Choose a base branch
from

Conversation

roshan0708
Copy link
Contributor

@roshan0708 roshan0708 commented Mar 6, 2025

Description

Currently, Babelfish throws syntax error when INLINE option is used in CREATE FUNCTION stmts. The issue arises from ANTLR's inability to recognize this token due to missing grammar in CREATE FUNCTION. To resolve this, we added the INLINE = (ON|OFF) grammar to ANTLR and implemented the logic to ignore it during parsing time.

Issues Resolved

BABEL-3719

Test Scenarios Covered

  • Use case based - y

  • Boundary conditions - y

  • Arbitrary inputs - y

  • Negative test cases -

  • Minor version upgrade tests -

  • Major version upgrade tests -

  • Performance tests -

  • Tooling impact -

  • Client tests -

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 Apache 2.0 and PostgreSQL licenses, 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.

Currently, Babelfish throws syntax error when INLINE option is used in
CREATE FUNCTION stmts. The issue arises from ANTLR's inability to
recognize this token due to missing grammar in CREATE FUNCTION. To
resolve this, we added the INLINE = (ON|OFF) grammar to ANTLR and
implemented the logic to ignore it during parsing time.

Task: BABEL-3719
Signed-off-by: Roshan Kanwar <rskanwar@amazon.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 this pull request may close these issues.

1 participant