Skip to content

branch-2.1: [fix](query tvf): resolve column mismatch error in JDBC query function (#54077)#54249

Merged
yiguolei merged 2 commits intoapache:branch-2.1from
morningman:21_pb54077
Aug 5, 2025
Merged

branch-2.1: [fix](query tvf): resolve column mismatch error in JDBC query function (#54077)#54249
yiguolei merged 2 commits intoapache:branch-2.1from
morningman:21_pb54077

Conversation

@morningman
Copy link
Contributor

bp #54077

apache#54077)

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:
  This PR addresses two issues with the WITH clause in SQL queries:
1. Column Count Mismatch: Previously, if the outer query selected fewer
columns than the inner query, an error would occur. This PR allows the
outer query to select a subset of the columns from the inner query,
preventing such errors.
2. Column Order Mismatch: The order of columns in the outer query did
not align with the results from the inner query, leading to incorrect
data alignment. This PR ensures that the results are returned in the
order specified by the outer query.

Co-authored-by: weixingyu12 <weixingyu12@jd.com>
@morningman morningman requested a review from yiguolei as a code owner August 3, 2025 21:54
@Thearas
Copy link
Contributor

Thearas commented Aug 3, 2025

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?

@morningman
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 0.00% (0/14) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 39.10% (10350/26472)
Line Coverage 30.11% (86057/285856)
Region Coverage 28.81% (44465/154321)
Branch Coverage 25.52% (22755/89160)

@yiguolei yiguolei merged commit 9bee458 into apache:branch-2.1 Aug 5, 2025
18 of 19 checks passed
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

Comments