Skip to content

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

Closed
gengliangwang wants to merge 3 commits intoapache:masterfrom
gengliangwang:removeStop
Closed

[SPARK-51722][SQL] Remove "stop" origin from ParseException#50518
gengliangwang wants to merge 3 commits intoapache:masterfrom
gengliangwang:removeStop

Conversation

@gengliangwang
Copy link
Copy Markdown
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
throw new ParseException(
command = None,
start = start,
stop = stop,
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.

Oh, ParseException doesn't use stop actually.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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