Skip to content

branch-4.0: [fix](jdbc) Preserve query tvf column aliases across JDBC catalogs #61939#62123

Open
github-actions[bot] wants to merge 1 commit intobranch-4.0from
auto-pick-61939-branch-4.0
Open

branch-4.0: [fix](jdbc) Preserve query tvf column aliases across JDBC catalogs #61939#62123
github-actions[bot] wants to merge 1 commit intobranch-4.0from
auto-pick-61939-branch-4.0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 4, 2026

Cherry-picked from #61939

…61939)

### What problem does this PR solve?

Related PR: #34516

Problem Summary:

Fix bug:
`query()` passes the SQL through to the JDBC catalog directly, so the
returned column names should follow the aliases defined in that SQL.

For example, for:
```sql
select * from query(
  'catalog' = 'jdbc_catalog',
  'query' = 'select a as x from test.t'
);
```
the output column name should be `x`, not the original source column
name `a`.
@Thearas
Copy link
Copy Markdown
Contributor

Thearas commented Apr 4, 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 closed this Apr 4, 2026
@dataroaring dataroaring reopened this Apr 4, 2026
@Thearas
Copy link
Copy Markdown
Contributor

Thearas commented Apr 4, 2026

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 75.00% (3/4) 🎉
Increment coverage report
Complete coverage report

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.

4 participants