Skip to content

branch-3.1: [feature](schema) support temporary table like mysql #40680 - #52347

Merged
morrySnow merged 3 commits into
apache:branch-3.1from
Yulei-Yang:support_temp_table_for_v3.1
Jun 27, 2025
Merged

branch-3.1: [feature](schema) support temporary table like mysql #40680#52347
morrySnow merged 3 commits into
apache:branch-3.1from
Yulei-Yang:support_temp_table_for_v3.1

Conversation

@Yulei-Yang

Copy link
Copy Markdown
Contributor

bp #40680

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

add a table type: temporary table: a materialized table which only
available in the session it be created.
Another feature:
can have same name with common table in the same db.
Docs:
apache/doris-website#1135
Implementation:
1. add a table type: temp, which a subtype of olap
2. use most code implementation of olap table
3. delete temp table when session close
4. if FE be shutdown unplanned, like blackout. Temp tables will still be
deleted
PRD:
https://docs.qq.com/sheet/DR3FHZUJEbGV2RU9U?u=f0e5811fea2e4db7b37c15953f7461ee&tab=000001
@Yulei-Yang

Copy link
Copy Markdown
ContributorAuthor

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

CategoryCoverage
Function Coverage83.43% (1128/1352)
Line Coverage67.21% (19629/29207)
Region Coverage66.95% (9688/14470)
Branch Coverage56.91% (5270/9260)

@doris-robot

Copy link
Copy Markdown

BE UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

CategoryCoverage
Function Coverage42.38% (11533/27211)
Line Coverage33.37% (100198/300284)
Region Coverage32.66% (52183/159755)
Branch Coverage29.73% (28026/94264)

@Yulei-Yang

Copy link
Copy Markdown
ContributorAuthor

run buildall

@doris-robot

Copy link
Copy Markdown

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

CategoryCoverage
Function Coverage83.43% (1128/1352)
Line Coverage67.19% (19623/29207)
Region Coverage66.91% (9682/14470)
Branch Coverage56.86% (5265/9260)

@Yulei-Yang

Copy link
Copy Markdown
ContributorAuthor

run external

@Yulei-Yang

Copy link
Copy Markdown
ContributorAuthor

run beut

@morrySnow
morrySnow merged commit 4dc8246 into apache:branch-3.1Jun 27, 2025
@morrySnowmorrySnow changed the title [feature](schema) support temporary table like mysqlbranch-3.1: [feature](schema) support temporary table like mysql #40680Jun 27, 2025
@Yulei-Yang
Yulei-Yang deleted the support_temp_table_for_v3.1 branch June 30, 2025 01:59
Sign up for freeto 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

@Yulei-Yang@hello-stephen@doris-robot@morrySnow