Skip to content

Conversation

@xzhangxian1008
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #10085

Problem Summary:

What is changed and how it works?


Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

@ti-chi-bot ti-chi-bot bot added the release-note-none Denotes a PR that doesn't merit a release note. label Aug 28, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Aug 28, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign benmeadowcroft, wshwsh12 for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Aug 28, 2025
@xzhangxian1008
Copy link
Contributor Author

/retest

@xzhangxian1008
Copy link
Contributor Author

/cc @gengliqi

@ti-chi-bot ti-chi-bot bot requested a review from gengliqi September 5, 2025 06:52
@xzhangxian1008
Copy link
Contributor Author

/cc @windtalker @gengliqi

@ti-chi-bot ti-chi-bot bot requested a review from windtalker September 25, 2025 02:37
@xzhangxian1008
Copy link
Contributor Author

/cc @gengliqi

4 similar comments
@xzhangxian1008
Copy link
Contributor Author

/cc @gengliqi

@xzhangxian1008
Copy link
Contributor Author

/cc @gengliqi

@xzhangxian1008
Copy link
Contributor Author

/cc @gengliqi

@xzhangxian1008
Copy link
Contributor Author

/cc @gengliqi


~CTE()
{
// TODO delete ---------------
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that a lot of code should be deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that a lot of code should be deleted.

I will delete them before merge of the pr

{
case CTEOpStatus::WAIT_SPILL:
// CTE is spilling blocks to disk, we need to wait the finish of spill
DB::setNotifyFuture(&(this->io_notifier));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DB::setNotifyFuture(&(this->io_notifier));
setNotifyFuture(&(this->io_notifier));

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

return OperatorStatus::CANCELLED;
case CTEOpStatus::WAIT_SPILL:
// CTE is spilling blocks to disk, we need to wait the finish of spill
DB::setNotifyFuture(&(this->io_notifier));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

done

Comment on lines 33 to 34
block = this->block_from_disk;
this->block_from_disk.clear();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
block = this->block_from_disk;
this->block_from_disk.clear();
block.swap(block_from_disk);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support CTE in TiFlash

2 participants