Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

SUBMARINE-638. [Spark-Security]Apply global/local limit after masking projection#490

Closed
harsha-tenneti wants to merge 1 commit intoapache:masterfrom
harsha-tenneti:SUBMARINE-638
Closed

SUBMARINE-638. [Spark-Security]Apply global/local limit after masking projection#490
harsha-tenneti wants to merge 1 commit intoapache:masterfrom
harsha-tenneti:SUBMARINE-638

Conversation

@harsha-tenneti
Copy link
Copy Markdown

What is this PR for?

This PR optimises the limit query when masking policies are applied in the spark-security plugin. This is applying the global limit on top masking projection if there is a limit in the initial plan

What type of PR is it?

[Improvement]

Todos

  • - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/SUBMARINE-638

How should this be tested?

https://travis-ci.org/github/harsha-tenneti/submarine/builds/754430620

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@harsha-tenneti harsha-tenneti changed the title Apply global/local limit after masking projection SUBMARINE-638. Apply global/local limit after masking projection Jan 14, 2021
@harsha-tenneti harsha-tenneti changed the title SUBMARINE-638. Apply global/local limit after masking projection SUBMARINE-638. [Spark-Security]Apply global/local limit after masking projection Jan 14, 2021
@harsha-tenneti
Copy link
Copy Markdown
Author

@yaooqinn can you please help look at this PR

// Extract global/local limit if any and apply after masking projection
val limitExpr: Option[Expression] = plan match {
case unaryNode: UnaryNode =>
unaryNode match {
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.

redundant here?

@yaooqinn
Copy link
Copy Markdown
Member

also cc @xunliu @jiwq

@yaooqinn
Copy link
Copy Markdown
Member

LGTM

@asfgit asfgit closed this in 669e0f5 Jan 19, 2021
@yaooqinn
Copy link
Copy Markdown
Member

thanks~ merged to master

@harsha-tenneti harsha-tenneti deleted the SUBMARINE-638 branch May 30, 2021 13:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants