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

[SPARK-51722][SQL] Remove "stop" origin from ParseException #50518

Closed
wants to merge 3 commits into from

Conversation

gengliangwang
Copy link
Member

What changes were proposed in this pull request?

The "stop" origin from ParseException is not used. We should remove it to simplify code.

Why are the changes needed?

Code clean up

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing UT

Was this patch authored or co-authored using generative AI tooling?

No

@gengliangwang gengliangwang requested a review from MaxGekk April 4, 2025 21:26
@gengliangwang gengliangwang requested a review from viirya April 7, 2025 17:41
case _ =>
throw new ParseException(
command = None,
start = start,
stop = stop,
Copy link
Member

Choose a reason for hiding this comment

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

Oh, ParseException doesn't use stop actually.

Copy link
Member Author

Choose a reason for hiding this comment

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

@viirya yes, for parser exception we just shall the start position with 3 ^s

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.

Looks okay to me. One question, it is not used is because we simply don't need it or we miss using it, maybe we should consider to use it?

@gengliangwang
Copy link
Member Author

Thanks, merging to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants