Skip to content

[KQP / RBO] Add sortings FSM to remove redundant sort operations #18782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 23, 2025

Conversation

pashandor789
Copy link
Collaborator

Changelog entry

...

Changelog category

  • New feature
  • Experimental feature
  • Improvement
  • Performance improvement
  • User Interface
  • Bugfix
  • Backward incompatible change
  • Documentation (changelog entry is not required)
  • Not for changelog (changelog entry is not required)

Description for reviewers

...

@pashandor789 pashandor789 requested review from a team as code owners May 25, 2025 12:26
@pashandor789 pashandor789 marked this pull request as draft May 25, 2025 12:26
@gridnevvvit gridnevvvit added the rebase-and-check Rebase PR with the current base branch and check label Jun 9, 2025
@github-actions github-actions bot removed the rebase-and-check Rebase PR with the current base branch and check label Jun 9, 2025
Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 09:50:30 UTC Pre-commit check linux-x86_64-relwithdebinfo for ab51a13 has started.
2025-06-09 09:52:04 UTC Check cancelled

Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 09:50:35 UTC Pre-commit check linux-x86_64-release-asan for ab51a13 has started.
2025-06-09 09:51:44 UTC Artifacts will be uploaded here
2025-06-09 09:52:04 UTC Check cancelled

@lll-phill-lll lll-phill-lll added the rebase-and-check Rebase PR with the current base branch and check label Jun 9, 2025
@github-actions github-actions bot removed the rebase-and-check Rebase PR with the current base branch and check label Jun 9, 2025
Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 10:02:03 UTC Pre-commit check linux-x86_64-relwithdebinfo for ab51a13 has started.
2025-06-09 10:02:27 UTC Artifacts will be uploaded here
2025-06-09 10:06:16 UTC ya make is running...
🔴 2025-06-09 10:10:28 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 10:02:54 UTC Pre-commit check linux-x86_64-release-asan for ab51a13 has started.
2025-06-09 10:03:37 UTC Artifacts will be uploaded here
2025-06-09 10:07:11 UTC ya make is running...
🔴 2025-06-09 10:11:09 UTC Build failed, see the logs. Also see fail summary

@Gazizonoki Gazizonoki added the rebase-and-check Rebase PR with the current base branch and check label Jun 9, 2025
@github-actions github-actions bot removed the rebase-and-check Rebase PR with the current base branch and check label Jun 9, 2025
Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 11:53:40 UTC Pre-commit check linux-x86_64-release-asan for 5d4f6db has started.
2025-06-09 11:53:44 UTC Artifacts will be uploaded here
2025-06-09 11:57:07 UTC ya make is running...
🔴 2025-06-09 13:51:44 UTC Too many tests failed, NOT going to retry
🟡 2025-06-09 14:00:00 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16062 14307 0 1578 150 27

🟢 2025-06-09 14:01:50 UTC Build successful.
🟡 2025-06-09 14:02:26 UTC ydbd size 3.9 GiB changed* by +695.0 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 0177d13 merge: 5d4f6db diff diff %
ydbd size 4 169 097 424 Bytes 4 169 809 136 Bytes +695.0 KiB +0.017%
ydbd stripped size 1 446 142 104 Bytes 1 446 327 736 Bytes +181.3 KiB +0.013%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 12:00:09 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5d4f6db has started.
2025-06-09 12:00:13 UTC Artifacts will be uploaded here
2025-06-09 12:03:36 UTC ya make is running...
🔴 2025-06-09 13:34:24 UTC Too many tests failed, NOT going to retry
🔴 2025-06-09 13:42:03 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
31225 25150 0 2307 3710 58

🟢 2025-06-09 13:44:55 UTC Build successful.
🟡 2025-06-09 13:45:27 UTC ydbd size 2.2 GiB changed* by +290.1 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: fd2db0f merge: 5d4f6db diff diff %
ydbd size 2 370 523 128 Bytes 2 370 820 208 Bytes +290.1 KiB +0.013%
ydbd stripped size 497 279 432 Bytes 497 343 400 Bytes +62.5 KiB +0.013%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@Gazizonoki Gazizonoki added the rebase-and-check Rebase PR with the current base branch and check label Jun 9, 2025
@github-actions github-actions bot removed the rebase-and-check Rebase PR with the current base branch and check label Jun 9, 2025
Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 15:15:57 UTC Pre-commit check linux-x86_64-release-asan for 5dea9d3 has started.
2025-06-09 15:16:01 UTC Artifacts will be uploaded here
2025-06-09 15:19:24 UTC ya make is running...
🟡 2025-06-09 17:41:19 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16065 15777 0 194 75 19

2025-06-09 17:42:46 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-09 18:15:12 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1689 (only retried tests) 1512 0 98 58 21

2025-06-09 18:15:30 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-09 18:48:46 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1496 (only retried tests) 1367 0 103 5 21

🟢 2025-06-09 18:49:00 UTC Build successful.
🟡 2025-06-09 18:49:38 UTC ydbd size 3.9 GiB changed* by +683.1 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 0e4c0ba merge: 5dea9d3 diff diff %
ydbd size 4 169 112 824 Bytes 4 169 812 296 Bytes +683.1 KiB +0.017%
ydbd stripped size 1 446 156 824 Bytes 1 446 334 840 Bytes +173.8 KiB +0.012%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Jun 9, 2025

2025-06-09 15:25:41 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5dea9d3 has started.
2025-06-09 15:26:04 UTC Artifacts will be uploaded here
2025-06-09 15:29:54 UTC ya make is running...
🟡 2025-06-09 17:19:39 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
31237 27851 0 480 2862 44

2025-06-09 17:22:16 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-09 17:36:35 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1528 (only retried tests) 815 0 473 215 25

2025-06-09 17:36:55 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-06-09 17:50:26 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1448 (only retried tests) 753 0 472 200 23

🟢 2025-06-09 17:50:44 UTC Build successful.
🟡 2025-06-09 17:51:11 UTC ydbd size 2.2 GiB changed* by +290.1 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 0e4c0ba merge: 5dea9d3 diff diff %
ydbd size 2 370 522 096 Bytes 2 370 819 144 Bytes +290.1 KiB +0.013%
ydbd stripped size 497 279 816 Bytes 497 343 720 Bytes +62.4 KiB +0.013%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@Gazizonoki Gazizonoki added the rebase-and-check Rebase PR with the current base branch and check label Jun 10, 2025
@github-actions github-actions bot removed the rebase-and-check Rebase PR with the current base branch and check label Jun 10, 2025
Copy link

github-actions bot commented Jun 10, 2025

2025-06-10 14:43:52 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5b11fe8 has started.
2025-06-10 14:44:03 UTC Artifacts will be uploaded here
2025-06-10 14:47:19 UTC ya make is running...
🟡 2025-06-10 16:09:41 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
31245 28513 0 48 2657 27

2025-06-10 16:12:32 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-10 16:24:20 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
397 (only retried tests) 331 0 45 0 21

2025-06-10 16:24:29 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-06-10 16:34:22 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
385 (only retried tests) 320 0 45 0 20

🟢 2025-06-10 16:34:30 UTC Build successful.
🟡 2025-06-10 16:34:50 UTC ydbd size 2.2 GiB changed* by +287.4 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: df34e46 merge: 5b11fe8 diff diff %
ydbd size 2 371 173 976 Bytes 2 371 468 280 Bytes +287.4 KiB +0.012%
ydbd stripped size 497 359 688 Bytes 497 422 792 Bytes +61.6 KiB +0.013%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Jun 10, 2025

2025-06-10 14:44:15 UTC Pre-commit check linux-x86_64-release-asan for 5b11fe8 has started.
2025-06-10 14:44:28 UTC Artifacts will be uploaded here
2025-06-10 14:47:49 UTC ya make is running...
🟡 2025-06-10 16:47:48 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16071 15746 0 154 147 24

2025-06-10 16:49:09 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-10 17:30:01 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1986 (only retried tests) 1789 0 92 83 22

2025-06-10 17:30:19 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-10 18:07:59 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1520 (only retried tests) 1351 0 83 66 20

🟢 2025-06-10 18:08:15 UTC Build successful.
🟡 2025-06-10 18:08:52 UTC ydbd size 3.9 GiB changed* by +682.5 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: df34e46 merge: 5b11fe8 diff diff %
ydbd size 4 170 178 400 Bytes 4 170 877 272 Bytes +682.5 KiB +0.017%
ydbd stripped size 1 446 427 896 Bytes 1 446 606 040 Bytes +174.0 KiB +0.012%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@Gazizonoki Gazizonoki added the rebase-and-check Rebase PR with the current base branch and check label Jun 11, 2025
@github-actions github-actions bot removed the rebase-and-check Rebase PR with the current base branch and check label Jun 11, 2025
Copy link

github-actions bot commented Jun 11, 2025

2025-06-11 11:16:36 UTC Pre-commit check linux-x86_64-release-asan for 11a87ce has started.
2025-06-11 11:17:05 UTC Artifacts will be uploaded here
2025-06-11 11:20:52 UTC ya make is running...
🟡 2025-06-11 13:41:05 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16076 15874 0 101 76 25

2025-06-11 13:43:07 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-11 14:18:46 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1710 (only retried tests) 1539 0 62 88 21

2025-06-11 14:19:06 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-11 14:54:30 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1436 (only retried tests) 1297 0 59 54 26

🟢 2025-06-11 14:54:47 UTC Build successful.
🟡 2025-06-11 14:55:21 UTC ydbd size 3.9 GiB changed* by +708.6 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 8e0f901 merge: 11a87ce diff diff %
ydbd size 4 167 775 264 Bytes 4 168 500 880 Bytes +708.6 KiB +0.017%
ydbd stripped size 1 445 699 288 Bytes 1 445 888 024 Bytes +184.3 KiB +0.013%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@androidfomiCHIEF androidfomiCHIEF added the rebase-and-check Rebase PR with the current base branch and check label Jun 17, 2025
@github-actions github-actions bot removed the rebase-and-check Rebase PR with the current base branch and check label Jun 17, 2025
Copy link

github-actions bot commented Jun 17, 2025

2025-06-17 08:59:48 UTC Pre-commit check linux-x86_64-relwithdebinfo for b281135 has started.
2025-06-17 09:00:00 UTC Artifacts will be uploaded here
2025-06-17 09:03:38 UTC ya make is running...
🔴 2025-06-17 09:06:31 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Jun 17, 2025

2025-06-17 09:00:49 UTC Pre-commit check linux-x86_64-release-asan for b281135 has started.
2025-06-17 09:01:00 UTC Artifacts will be uploaded here
2025-06-17 09:04:22 UTC ya make is running...
🔴 2025-06-17 09:08:52 UTC Build failed, see the logs. Also see fail summary

@androidfomiCHIEF androidfomiCHIEF added the rebase-and-check Rebase PR with the current base branch and check label Jun 17, 2025
@github-actions github-actions bot removed the rebase-and-check Rebase PR with the current base branch and check label Jun 17, 2025
Copy link

github-actions bot commented Jun 17, 2025

2025-06-17 16:21:30 UTC Pre-commit check linux-x86_64-release-asan for 6182ab7 has started.
2025-06-17 16:21:51 UTC Artifacts will be uploaded here
2025-06-17 16:25:49 UTC ya make is running...
🟡 2025-06-17 18:02:43 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16031 15818 0 112 81 20

2025-06-17 18:04:13 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-17 18:39:04 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1642 (only retried tests) 1441 0 63 120 18

2025-06-17 18:39:22 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-17 19:13:15 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1527 (only retried tests) 1389 0 55 65 18

🟢 2025-06-17 19:13:31 UTC Build successful.
🟡 2025-06-17 19:14:00 UTC ydbd size 3.9 GiB changed* by +787.7 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 7eb7f65 merge: 6182ab7 diff diff %
ydbd size 4 170 878 304 Bytes 4 171 684 896 Bytes +787.7 KiB +0.019%
ydbd stripped size 1 446 785 752 Bytes 1 446 984 120 Bytes +193.7 KiB +0.014%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Jun 17, 2025

2025-06-17 16:23:31 UTC Pre-commit check linux-x86_64-relwithdebinfo for 6182ab7 has started.
2025-06-17 16:23:43 UTC Artifacts will be uploaded here
2025-06-17 16:27:07 UTC ya make is running...
🟡 2025-06-17 17:34:07 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
38268 35553 0 18 2662 35

2025-06-17 17:37:39 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-17 17:49:29 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
487 (only retried tests) 448 0 17 0 22

2025-06-17 17:49:40 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-06-17 18:01:19 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
482 (only retried tests) 443 0 17 0 22

🟢 2025-06-17 18:01:31 UTC Build successful.
🟡 2025-06-17 18:01:48 UTC ydbd size 2.2 GiB changed* by +325.4 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 7eb7f65 merge: 6182ab7 diff diff %
ydbd size 2 371 138 248 Bytes 2 371 471 496 Bytes +325.4 KiB +0.014%
ydbd stripped size 497 369 576 Bytes 497 428 680 Bytes +57.7 KiB +0.012%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@androidfomiCHIEF androidfomiCHIEF added the rebase-and-check Rebase PR with the current base branch and check label Jun 17, 2025
@github-actions github-actions bot removed the rebase-and-check Rebase PR with the current base branch and check label Jun 17, 2025
Copy link

github-actions bot commented Jun 17, 2025

2025-06-17 13:13:40 UTC Pre-commit check linux-x86_64-release-asan for e68f35b has started.
2025-06-17 13:13:57 UTC Artifacts will be uploaded here
2025-06-17 13:17:25 UTC ya make is running...
🟡 2025-06-17 15:11:00 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16048 15830 0 108 92 18

2025-06-17 15:12:30 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-17 15:47:23 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1624 (only retried tests) 1463 0 77 66 18

2025-06-17 15:47:41 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-17 16:19:23 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1446 (only retried tests) 1299 0 65 64 18

🟢 2025-06-17 16:19:38 UTC Build successful.
🟡 2025-06-17 16:20:12 UTC ydbd size 3.9 GiB changed* by +787.6 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 21d951f merge: e68f35b diff diff %
ydbd size 4 172 736 512 Bytes 4 173 543 064 Bytes +787.6 KiB +0.019%
ydbd stripped size 1 446 994 936 Bytes 1 447 193 304 Bytes +193.7 KiB +0.014%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@androidfomiCHIEF androidfomiCHIEF added the rebase-and-check Rebase PR with the current base branch and check label Jun 17, 2025
@naspirato naspirato added the ok-to-test Special label used to approve a PR for testing on our infrastructure label Jun 18, 2025
@github-actions github-actions bot removed ok-to-test Special label used to approve a PR for testing on our infrastructure rebase-and-check Rebase PR with the current base branch and check labels Jun 18, 2025
Copy link

github-actions bot commented Jun 18, 2025

2025-06-18 09:53:20 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5dc5ab7 has started.
2025-06-18 09:53:40 UTC Artifacts will be uploaded here
2025-06-18 09:57:48 UTC ya make is running...
🟡 2025-06-18 11:52:31 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
38287 35568 0 5 2675 39

2025-06-18 11:56:08 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-18 12:10:24 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
584 (only retried tests) 554 0 2 3 25

2025-06-18 12:10:35 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-06-18 12:19:02 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
319 (only retried tests) 292 0 2 0 25

🟢 2025-06-18 12:19:10 UTC Build successful.
🟡 2025-06-18 12:19:32 UTC ydbd size 2.2 GiB changed* by +494.9 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: abeada2 merge: 5dc5ab7 diff diff %
ydbd size 2 373 000 616 Bytes 2 373 507 376 Bytes +494.9 KiB +0.021%
ydbd stripped size 497 531 720 Bytes 497 615 336 Bytes +81.7 KiB +0.017%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Jun 18, 2025

2025-06-18 10:23:23 UTC Pre-commit check linux-x86_64-release-asan for 5dc5ab7 has started.
2025-06-18 10:23:36 UTC Artifacts will be uploaded here
2025-06-18 10:27:07 UTC ya make is running...
🟡 2025-06-18 12:49:34 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16055 15777 0 125 129 24

2025-06-18 12:51:00 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-18 13:24:53 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1629 (only retried tests) 1446 0 74 85 24

2025-06-18 13:25:12 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-18 13:57:14 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1353 (only retried tests) 1206 0 63 62 22

🟢 2025-06-18 13:58:14 UTC Build successful.
🟡 2025-06-18 13:58:47 UTC ydbd size 3.9 GiB changed* by +1.1 MiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: f08e9a4 merge: 5dc5ab7 diff diff %
ydbd size 4 173 702 456 Bytes 4 174 853 184 Bytes +1.1 MiB +0.028%
ydbd stripped size 1 447 299 032 Bytes 1 447 568 472 Bytes +263.1 KiB +0.019%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

pashandor789 and others added 2 commits June 21, 2025 03:05
author Pavel Ivanov <pudge1000-7@ydb.tech> 1748548106 +0000
committer Pavel Ivanov <pudge1000-7@qavm-9f0570a4.qemu> 1750464062 +0300

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

[] ...

Update yql_type_annotation.h

[] ...

revert

revert
@androidfomiCHIEF androidfomiCHIEF added the rebase-and-check Rebase PR with the current base branch and check label Jun 21, 2025
@github-actions github-actions bot removed the rebase-and-check Rebase PR with the current base branch and check label Jun 21, 2025
Copy link

github-actions bot commented Jun 21, 2025

2025-06-21 00:39:35 UTC Pre-commit check linux-x86_64-release-asan for 98fac29 has started.
2025-06-21 00:40:01 UTC Artifacts will be uploaded here
2025-06-21 00:44:01 UTC ya make is running...
🟡 2025-06-21 02:29:16 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14124 13782 0 106 205 31

2025-06-21 02:30:33 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-21 03:14:59 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
2113 (only retried tests) 1774 0 101 212 26

2025-06-21 03:15:20 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-21 04:00:00 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1658 (only retried tests) 1393 0 60 182 23

🟢 2025-06-21 04:00:19 UTC Build successful.
🟡 2025-06-21 04:00:55 UTC ydbd size 3.9 GiB changed* by +768.1 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 9d614bb merge: 98fac29 diff diff %
ydbd size 4 183 682 696 Bytes 4 184 469 192 Bytes +768.1 KiB +0.019%
ydbd stripped size 1 450 421 272 Bytes 1 450 607 288 Bytes +181.7 KiB +0.013%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Jun 21, 2025

2025-06-21 00:45:59 UTC Pre-commit check linux-x86_64-relwithdebinfo for 98fac29 has started.
2025-06-21 00:46:10 UTC Artifacts will be uploaded here
2025-06-21 00:49:22 UTC ya make is running...
🟡 2025-06-21 01:54:10 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
36373 33650 0 4 2676 43

2025-06-21 01:57:30 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-06-21 02:08:50 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
511 (only retried tests) 478 0 0 0 33

🟢 2025-06-21 02:08:59 UTC Build successful.
🟡 2025-06-21 02:09:20 UTC ydbd size 2.2 GiB changed* by +317.6 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 9d614bb merge: 98fac29 diff diff %
ydbd size 2 378 361 152 Bytes 2 378 686 328 Bytes +317.6 KiB +0.014%
ydbd stripped size 498 343 016 Bytes 498 403 400 Bytes +59.0 KiB +0.012%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@pashandor789 pashandor789 marked this pull request as ready for review June 21, 2025 03:08
@pashandor789 pashandor789 merged commit 97174af into ydb-platform:main Jun 23, 2025
11 checks passed
@pashandor789 pashandor789 requested a review from Copilot July 1, 2025 17:10
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR integrates a finite state machine (FSM) for tracking sorting and shuffling into the query optimizer to identify and remove redundant Sort/Top operators, and updates affected tests and plans to match the new behavior.

  • Introduce Sorting and Shuffling FSM in dq_opt_* code, propagate ordering metadata in statistics, and extend optimizer rules to remove redundant sorts.
  • Update KQP physical optimizer rules (kqp_opt_phy_sort.cpp, kqp_opt_phy_build_stage.cpp) to call the new sort-removal logic and adjust handlers.
  • Refresh many .plan test fixtures and Python tests to expect the removal of TopSort operators and add debug instrumentation.

Reviewed Changes

Copilot reviewed 106 out of 106 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ydb/tests/functional/suite_tests/test_base.py Added debug print calls for query names
ydb/library/yql/dq/opt/dq_opt_stat_transformer_base.cpp Spelling, stats propagation, RemoveSorting
ydb/library/yql/dq/opt/dq_opt_join_hypergraph.h FSM construction updated
ydb/core/kqp/opt/physical/kqp_opt_phy_sort.cpp Renamed and refactored sort-removal rule
ydb/core/kqp/opt/physical/kqp_opt_phy_build_stage.cpp Implement sort-over-read removal, debug logs
Comments suppressed due to low confidence (1)

ydb/core/kqp/opt/physical/kqp_opt_phy_sort.cpp:24

  • The definition of GetTable ends with an extra semicolon after its closing brace, which will trigger a compilation error. Remove the trailing ;.
TKqpTable GetTable(TExprBase input, bool isReadRanges) {

Comment on lines +392 to +393
print('query_name: {query_name}')
print('statement: {statement}')
Copy link
Preview

Copilot AI Jul 1, 2025

Choose a reason for hiding this comment

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

This print call does not interpolate query_name. Use an f-string (e.g. print(f"query_name: {query_name}")) or .format() to include the variable value.

Suggested change
print('query_name: {query_name}')
print('statement: {statement}')
print(f'query_name: {query_name}')
print(f'statement: {statement}')

Copilot uses AI. Check for mistakes.

@@ -14,6 +14,44 @@ TDqStatisticsTransformerBase::TDqStatisticsTransformerBase(TTypeAnnotationContex
: TypeCtx(typeCtx), Pctx(ctx), CardinalityHints(hints)
{ }

void PropogateTableAliasesFromChildren(const TExprNode::TPtr& input, TTypeAnnotationContext* typeCtx) {
Copy link
Preview

Copilot AI Jul 1, 2025

Choose a reason for hiding this comment

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

The function name PropogateTableAliasesFromChildren is misspelled. It should be PropagateTableAliasesFromChildren.

Suggested change
void PropogateTableAliasesFromChildren(const TExprNode::TPtr& input, TTypeAnnotationContext* typeCtx) {
void PropagateTableAliasesFromChildren(const TExprNode::TPtr& input, TTypeAnnotationContext* typeCtx) {

Copilot uses AI. Check for mistakes.

YQL_CLOG(TRACE, CoreDq) << "sperm streamlookup:" << typeCtx.GetStats(streamLookup.Cast().Raw())->ToString();
YQL_CLOG(TRACE, CoreDq) << "sperm2: Output of unionall" << inputStats->ToString();
}
Cout << "sperm : " << sortedByOrderingIdx << Endl;
Copy link
Preview

Copilot AI Jul 1, 2025

Choose a reason for hiding this comment

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

[nitpick] Remove this debugging output or guard it behind a diagnostic flag—logging 'sperm' is unclear and will clutter test runs.

Copilot uses AI. Check for mistakes.

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.

7 participants