Skip to content

branch-4.0: [fix](parser) fix DELETE/UPDATE cannot resolve column when table alias uses AS keyword #60335#60402

Merged
yiguolei merged 1 commit intobranch-4.0from
auto-pick-60335-branch-4.0
Feb 2, 2026
Merged

branch-4.0: [fix](parser) fix DELETE/UPDATE cannot resolve column when table alias uses AS keyword #60335#60402
yiguolei merged 1 commit intobranch-4.0from
auto-pick-60335-branch-4.0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Cherry-picked from #60335

…s uses AS keyword (#60335)

### What problem does this PR solve?
example:
 delete from d_table as t1
        using d_table as t2
        where t2.k2 = 2
          and t1.k1 = t2.k1;

before this pr, parser will report error that cannot find k1 in ast1,
because ast1 is parsed as table alias.
@github-actions github-actions bot requested a review from yiguolei as a code owner January 31, 2026 05:35
@Thearas
Copy link
Copy Markdown
Contributor

Thearas commented Jan 31, 2026

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this Jan 31, 2026
@Thearas
Copy link
Copy Markdown
Contributor

Thearas commented Jan 31, 2026

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 100.00% (2/2) 🎉
Increment coverage report
Complete coverage report

@yiguolei yiguolei merged commit 4682c4a into branch-4.0 Feb 2, 2026
25 of 28 checks passed
@github-actions github-actions bot deleted the auto-pick-60335-branch-4.0 branch February 2, 2026 03:16
ybtsdst pushed a commit to ybtsdst/doris that referenced this pull request Feb 27, 2026
…n table alias uses AS keyword apache#60335 (apache#60402)

Cherry-picked from apache#60335

Co-authored-by: minghong <zhouminghong@selectdb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants