Skip to content

[SPARK-39272][SQL] Increase the start position of query context by 1 - #36651

Closed
gengliangwang wants to merge 6 commits into
apache:masterfrom
gengliangwang:increase1
Closed

[SPARK-39272][SQL] Increase the start position of query context by 1#36651
gengliangwang wants to merge 6 commits into
apache:masterfrom
gengliangwang:increase1

Conversation

@gengliangwang

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Increase the start position of query context by 1

Why are the changes needed?

Currently, the line number starts from 1, while the start position starts from 0.
Thus it's better to increase the start position by 1 for consistency.

Does this PR introduce any user-facing change?

No

How was this patch tested?

UT

@gengliangwang

Copy link
Copy Markdown
MemberAuthor

cc @srielau as well

@gengliangwang

gengliangwang commented May 25, 2022

Copy link
Copy Markdown
MemberAuthor

@HyukjinKwon@dongjoon-hyun@yaooqinn@cloud-fan Thanks for the review.
Merging to master

gengliangwang added a commit to gengliangwang/spark that referenced this pull request May 26, 2022
Increase the start position of query context by 1
Currently, the line number starts from 1, while the start position starts from 0.
Thus it's better to increase the start position by 1 for consistency.
No
UT
Closesapache#36651 from gengliangwang/increase1.
Authored-by: Gengliang Wang <gengliang@apache.org>
Signed-off-by: Gengliang Wang <gengliang@apache.org>
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.

5 participants

@gengliangwang@cloud-fan@HyukjinKwon@yaooqinn@dongjoon-hyun