Skip to content

[SPARK-30309][SQL] Mark Filter as a sealed class - #26950

Closed
MaxGekk wants to merge 1 commit into
apache:masterfrom
MaxGekk:sealed-filter
Closed

[SPARK-30309][SQL] Mark Filter as a sealed class#26950
MaxGekk wants to merge 1 commit into
apache:masterfrom
MaxGekk:sealed-filter

Conversation

@MaxGekk

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Added the sealed keyword to the Filter class

Why are the changes needed?

To do not miss handling of new filters in a datasource in the future. For example, AlwaysTrue and AlwaysFalse were added recently by #23606

Does this PR introduce any user-facing change?

Should not.

How was this patch tested?

By existing tests.

@MaxGekk

Copy link
Copy Markdown
MemberAuthor

ping @hvanhovell

*/
@Stable
abstract class Filter {
sealed abstract class Filter {

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.

Hi, @MaxGekk . Please file a JIRA for this.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

done

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.

Thanks.

@MaxGekkMaxGekk changed the title [MINOR][SQL] Mark Filter as a sealed class[SPARK-30309][SQL] Mark Filter as a sealed classDec 19, 2019
@SparkQA

Copy link
Copy Markdown

Test build #115573 has finished for PR 26950 at commit af979dd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • sealed abstract class Filter

@dongjoon-hyundongjoon-hyun left a comment

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.

+1, LGTM. Merged to master. Thank you, @MaxGekk .

@MaxGekk
MaxGekk deleted the sealed-filter branch June 5, 2020 19:42
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@MaxGekk@SparkQA@dongjoon-hyun