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

Disallow queries that reference catalog views #641

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

eirsep
Copy link
Member

@eirsep eirsep commented Sep 10, 2024

Description

Disallow queries that reference catalog views

Issues Resolved

#534

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Collaborator

@noCharger noCharger left a comment

Choose a reason for hiding this comment

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

Can we add one IT for Sql as well?

@@ -18,5 +18,7 @@ class FlintPPLSparkExtensions extends (SparkSessionExtensions => Unit) {
extensions.injectParser { (spark, parser) =>
new FlintSparkPPLParser(parser)
}


Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit remove empty lines

@@ -1 +1 @@
sbt.version = 1.8.2
sbt.version = 1.10.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we ignore this file?

Signed-off-by: Surya Sashank Nistala <[email protected]>
Copy link
Collaborator

@penghuo penghuo left a comment

Choose a reason for hiding this comment

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

The code looks good.

While "Disable View Access" is a valid feature from a Managed Service perspective, it is not directly related to the core functionality of the opensearch-spark repository, which primarily provides a Spark Accelerator framework for enabling secondary indices to remote data stores.

Would it make sense to implement this feature in a separate repository?

@dai-chen
Copy link
Collaborator

As @penghuo mentioned above, the changes are not directly related to Flint but it will disallow any SQL view created in Flint? I assume this is actually not the requirement for Flint Spark extension. I thought we just want to disable Glue Catalog View which may have the issue reported.

@eirsep
Copy link
Member Author

eirsep commented Sep 11, 2024

As @penghuo mentioned above, the changes are not directly related to Flint but it will disallow any SQL view created in Flint? I assume this is actually not the requirement for Flint Spark extension. I thought we just want to disable Glue Catalog View which may have the issue reported.

@dai-chen What additional check can I add to ensure the View is actually a Glue catalog view?

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.

4 participants