Skip to content

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

Closed
gengliangwang wants to merge 1 commit into
apache:branch-3.3from
gengliangwang:portSPARK-39234
Closed

[SPARK-39272][SQL][3.3] Increase the start position of query context by 1#36684
gengliangwang wants to merge 1 commit into
apache:branch-3.3from
gengliangwang:portSPARK-39234

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

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>
@gengliangwang

Copy link
Copy Markdown
MemberAuthor

This is to port #36651 to branch-3.3

@gengliangwang

Copy link
Copy Markdown
MemberAuthor

Merging to 3.3

gengliangwang added a commit that referenced this pull request May 26, 2022
…by 1
### 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
Closes#36684 from gengliangwang/portSPARK-39234.
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.

4 participants

@gengliangwang@MaxGekk@cloud-fan@yaooqinn