Skip to content

Conversation

@maropu
Copy link
Member

@maropu maropu commented Jul 30, 2020

What changes were proposed in this pull request?

This PR aims to update SqlBse.g4 for avoiding generating unused code.
Currently, ANTLR generates unused methods and variables; isValidDecimal and isHint are only used in the generated lexer. This PR changed the code to use @parser::members and @lexer::members to avoid it.

Why are the changes needed?

To reduce unnecessary code.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests.

@SparkQA
Copy link

SparkQA commented Jul 30, 2020

Test build #126800 has finished for PR 29296 at commit 1d04d22.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@maropu
Copy link
Member Author

maropu commented Jul 30, 2020

cc: @cloud-fan @viirya

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 30e3042 Jul 30, 2020
@maropu
Copy link
Member Author

maropu commented Jul 30, 2020

Thanks!

Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to 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.

4 participants