Skip to content

Conversation

@kardymonds
Copy link
Collaborator

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Additional information

...

@kardymonds kardymonds requested a review from a team as a code owner November 7, 2024 14:09
@github-actions
Copy link

github-actions bot commented Nov 7, 2024

2024-11-07 14:13:43 UTC Pre-commit check linux-x86_64-relwithdebinfo for 4460f7e has started.
2024-11-07 14:13:55 UTC Artifacts will be uploaded here
2024-11-07 14:16:54 UTC ya make is running...
🔴 2024-11-07 14:19:12 UTC Build failed, see the logs. Also see fail summary

@github-actions
Copy link

github-actions bot commented Nov 7, 2024

2024-11-07 14:13:45 UTC Pre-commit check linux-x86_64-release-asan for 4460f7e has started.
2024-11-07 14:13:58 UTC Artifacts will be uploaded here
2024-11-07 14:17:07 UTC ya make is running...
🔴 2024-11-07 14:20:01 UTC Build failed, see the logs. Also see fail summary

@github-actions
Copy link

github-actions bot commented Nov 7, 2024

2024-11-07 18:55:50 UTC Pre-commit check linux-x86_64-relwithdebinfo for e9d09d2 has started.
2024-11-07 18:56:08 UTC Artifacts will be uploaded here
2024-11-07 18:59:07 UTC ya make is running...
🟡 2024-11-07 19:52:06 UTC ydbd size 2.8 GiB changed* by +385.1 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 79c834b merge: e9d09d2 diff diff %
ydbd size 3 045 806 544 Bytes 3 046 200 928 Bytes +385.1 KiB +0.013%
ydbd stripped size 482 096 088 Bytes 482 151 992 Bytes +54.6 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
2024-11-07 19:52:07 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Nov 7, 2024

2024-11-07 18:55:55 UTC Pre-commit check linux-x86_64-release-asan for e9d09d2 has started.
2024-11-07 18:56:06 UTC Artifacts will be uploaded here
2024-11-07 18:59:05 UTC ya make is running...
2024-11-07 19:51:39 UTC Check cancelled

if (predicate.Ref().ChildrenSize() != 2 ) {
return false;
}
auto expr1 = predicate.Ref().Child(0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

оберни сразу в TExprBase, у тебя выражения повторяются в этой функции

@github-actions
Copy link

github-actions bot commented Nov 7, 2024

2024-11-07 19:55:14 UTC Pre-commit check linux-x86_64-release-asan for 6e08fc4 has started.
2024-11-07 19:55:51 UTC Artifacts will be uploaded here
2024-11-07 19:59:20 UTC ya make is running...
🟡 2024-11-07 21:01:28 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?
8967 8903 0 21 9 34

🟢 2024-11-07 21:02:13 UTC Build successful.
🟢 2024-11-07 21:02:43 UTC ydbd size 5.7 GiB changed* by +33.9 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: dfcd20b merge: 6e08fc4 diff diff %
ydbd size 6 164 430 112 Bytes 6 164 464 776 Bytes +33.9 KiB +0.001%
ydbd stripped size 1 537 235 728 Bytes 1 537 244 688 Bytes +8.8 KiB +0.001%

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

@github-actions
Copy link

github-actions bot commented Nov 7, 2024

2024-11-07 19:55:25 UTC Pre-commit check linux-x86_64-relwithdebinfo for 6e08fc4 has started.
2024-11-07 19:56:00 UTC Artifacts will be uploaded here
2024-11-07 19:59:32 UTC ya make is running...
🟡 2024-11-07 20:53:48 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?
40115 34454 0 2 5557 102

2024-11-07 20:57:09 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-11-07 21:08:48 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
103 (only retried tests) 7 0 0 0 96

🟢 2024-11-07 21:08:55 UTC Build successful.
🟢 2024-11-07 21:09:16 UTC ydbd size 2.8 GiB changed* by +13.7 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: dfcd20b merge: 6e08fc4 diff diff %
ydbd size 3 046 188 472 Bytes 3 046 202 528 Bytes +13.7 KiB +0.000%
ydbd stripped size 482 149 368 Bytes 482 152 248 Bytes +2.8 KiB +0.001%

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

auto sqlIn = predicate.Cast<TCoSqlIn>();
predicateTree.CanBePushed = SqlInCanBePushed(sqlIn, lambdaArg, lambdaBody, settings);
} else if (settings.IsEnabled(TSettings::EFeatureFlag::IsDistinctOperator) &&
(predicate.Ref().IsCallable("IsNotDistinctFrom") || predicate.Ref().IsCallable("IsDistinctFrom"))) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

в IsCallable можно передать сразу несколько строк

IsCallable({"IsNotDistinctFrom"sv, "IsDistinctFrom"sv})

auto predicate = coalesce.Predicate();
if (auto compare = predicate.Maybe<TCoCompare>()) {
return SerializeCompare(compare.Cast(), proto, arg, err);
} else if (auto sqlIn = predicate.Maybe<TCoSqlIn>()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

какая связь между in и coalesce ? странно видеть in внутри coalesce

auto predicate = coalesce.Predicate();
if (auto compare = predicate.Maybe<TCoCompare>()) {
return SerializeCompare(compare.Cast(), proto, arg, err);
} else if (auto sqlIn = predicate.Maybe<TCoSqlIn>()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

else избыточен


bool SerializeIsNotDistinctFrom(const TExprBase& predicate, TPredicate* predicateProto, const TCoArgument& arg, TStringBuilder& err, bool invert) {
if (predicate.Ref().ChildrenSize() != 2 ) {
err << "unknown predicate, children size " << predicate.Ref().ChildrenSize();
Copy link
Collaborator

Choose a reason for hiding this comment

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

напиши, что ожидалось 2, а пришло столько-то

@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 07:54:02 UTC Pre-commit check linux-x86_64-relwithdebinfo for 75fdb33 has started.
2024-11-08 07:54:13 UTC Artifacts will be uploaded here
2024-11-08 07:57:13 UTC ya make is running...
🟡 2024-11-08 08:51:09 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?
40115 34453 0 2 5557 103

2024-11-08 08:54:31 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-11-08 09:06:10 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
104 (only retried tests) 8 0 0 0 96

🟢 2024-11-08 09:06:16 UTC Build successful.
🟢 2024-11-08 09:06:38 UTC ydbd size 2.8 GiB changed* by +13.7 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 37b6f07 merge: 75fdb33 diff diff %
ydbd size 3 046 208 408 Bytes 3 046 222 456 Bytes +13.7 KiB +0.000%
ydbd stripped size 482 152 088 Bytes 482 154 968 Bytes +2.8 KiB +0.001%

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

@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 07:54:08 UTC Pre-commit check linux-x86_64-release-asan for 75fdb33 has started.
2024-11-08 07:54:19 UTC Artifacts will be uploaded here
2024-11-08 07:57:33 UTC ya make is running...
🟡 2024-11-08 09:04:37 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?
8971 8893 0 31 9 38

🟢 2024-11-08 09:05:24 UTC Build successful.
🟢 2024-11-08 09:06:08 UTC ydbd size 5.7 GiB changed* by +33.9 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 37b6f07 merge: 75fdb33 diff diff %
ydbd size 6 164 499 704 Bytes 6 164 534 368 Bytes +33.9 KiB +0.001%
ydbd stripped size 1 537 250 864 Bytes 1 537 259 824 Bytes +8.8 KiB +0.001%

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

@kardymonds kardymonds changed the title YQ-3824 Shared reading: fix is not dinstinct from with optional filed YQ-3824 Shared reading: fix is not dinstinct from with optional field Nov 8, 2024
@kardymonds kardymonds changed the title YQ-3824 Shared reading: fix is not dinstinct from with optional field YQ-3824 Shared reading: fix is not dinstinct from with optional field Nov 8, 2024
@dorooleg dorooleg changed the title YQ-3824 Shared reading: fix is not dinstinct from with optional field YQ-3824 Shared reading: fix is not distinct from with optional field Nov 8, 2024
@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 11:27:47 UTC Pre-commit check linux-x86_64-release-asan for de01c89 has started.
2024-11-08 11:27:56 UTC Artifacts will be uploaded here
2024-11-08 11:31:05 UTC ya make is running...
2024-11-08 12:00:12 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 11:28:09 UTC Pre-commit check linux-x86_64-relwithdebinfo for de01c89 has started.
2024-11-08 11:28:36 UTC Artifacts will be uploaded here
2024-11-08 11:31:39 UTC ya make is running...
2024-11-08 12:00:03 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 12:03:25 UTC Pre-commit check linux-x86_64-relwithdebinfo for 0e02746 has started.
2024-11-08 12:03:35 UTC Artifacts will be uploaded here
2024-11-08 12:06:39 UTC ya make is running...
🟡 2024-11-08 13:02:38 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?
40117 34449 0 5 5557 106

2024-11-08 13:06:04 UTC ya make is running... (failed tests rerun, try 2)
🟡 2024-11-08 13:17:46 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?
110 (only retried tests) 13 0 1 0 96

2024-11-08 13:17:55 UTC ya make is running... (failed tests rerun, try 3)
🟢 2024-11-08 13:19:25 UTC ydbd size 2.8 GiB changed* by +14.1 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 25ffb03 merge: 0e02746 diff diff %
ydbd size 3 046 428 288 Bytes 3 046 442 752 Bytes +14.1 KiB +0.000%
ydbd stripped size 482 176 440 Bytes 482 179 064 Bytes +2.6 KiB +0.001%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation
2024-11-08 13:19:27 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 12:05:32 UTC Pre-commit check linux-x86_64-release-asan for 0e02746 has started.
2024-11-08 12:05:42 UTC Artifacts will be uploaded here
2024-11-08 12:08:50 UTC ya make is running...
🟡 2024-11-08 13:14:06 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?
8975 8898 0 35 6 36

🟢 2024-11-08 13:14:53 UTC Build successful.
🟢 2024-11-08 13:15:23 UTC ydbd size 5.7 GiB changed* by +32.6 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 25ffb03 merge: 0e02746 diff diff %
ydbd size 6 164 952 992 Bytes 6 164 986 352 Bytes +32.6 KiB +0.001%
ydbd stripped size 1 537 349 456 Bytes 1 537 358 416 Bytes +8.8 KiB +0.001%

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

predicateTree.CanBePushed = SqlInCanBePushed(sqlIn, lambdaArg, lambdaBody, settings);
} else if (settings.IsEnabled(TSettings::EFeatureFlag::IsDistinctOperator) &&
(predicate.Ref().IsCallable({"IsNotDistinctFrom", "IsDistinctFrom"}))) {
predicateTree.CanBePushed = IsDistinctCanBePushed(predicate, lambdaArg, lambdaBody, settings);;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Лишняя ;

|| !CheckExpressionNodeForPushdown(expr2, lambdaArg, settings)) {
return false;
}
const TTypeAnnotationNode* inputType = lambdaBody.Ptr()->GetTypeAnn();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Переменную можно перетащить внутрь if

Copy link
Collaborator

Choose a reason for hiding this comment

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

Или объединить два if

uzhastik
uzhastik previously approved these changes Nov 8, 2024
return SerializeExpression(compare.Left(), proto->mutable_left_value(), arg, err) && SerializeExpression(compare.Right(), proto->mutable_right_value(), arg, err);
}

bool SerializeSqlIn(const TCoSqlIn& sqlIn, TPredicate* proto, const TCoArgument& arg, TStringBuilder& err);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Лишнее объявление

@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 13:23:22 UTC Pre-commit check linux-x86_64-relwithdebinfo for f037d0f has started.
2024-11-08 13:23:32 UTC Artifacts will be uploaded here
2024-11-08 13:26:40 UTC ya make is running...
2024-11-08 13:34:52 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 13:23:35 UTC Pre-commit check linux-x86_64-release-asan for f037d0f has started.
2024-11-08 13:25:26 UTC Artifacts will be uploaded here
2024-11-08 13:28:28 UTC ya make is running...
2024-11-08 13:34:43 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 13:40:04 UTC Pre-commit check linux-x86_64-relwithdebinfo for 2e66405 has started.
2024-11-08 13:40:15 UTC Artifacts will be uploaded here
2024-11-08 13:42:01 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 13:40:18 UTC Pre-commit check linux-x86_64-release-asan for 2e66405 has started.
2024-11-08 13:40:29 UTC Artifacts will be uploaded here
2024-11-08 13:42:01 UTC Check cancelled

@kardymonds kardymonds enabled auto-merge (squash) November 8, 2024 13:44
@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 13:46:32 UTC Pre-commit check linux-x86_64-relwithdebinfo for 76bd74b has started.
2024-11-08 13:46:44 UTC Artifacts will be uploaded here
2024-11-08 13:49:57 UTC ya make is running...
🟡 2024-11-08 14:45:33 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?
40118 34458 0 4 5557 99

2024-11-08 14:49:03 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-11-08 15:01:38 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
102 (only retried tests) 6 0 0 1 95

🟢 2024-11-08 15:01:45 UTC Build successful.
🟢 2024-11-08 15:02:04 UTC ydbd size 2.8 GiB changed* by +10.9 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 65dc86e merge: 76bd74b diff diff %
ydbd size 3 046 533 848 Bytes 3 046 545 016 Bytes +10.9 KiB +0.000%
ydbd stripped size 482 199 064 Bytes 482 201 240 Bytes +2.1 KiB +0.000%

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

@github-actions
Copy link

github-actions bot commented Nov 8, 2024

2024-11-08 13:46:41 UTC Pre-commit check linux-x86_64-release-asan for 76bd74b has started.
2024-11-08 13:46:53 UTC Artifacts will be uploaded here
2024-11-08 13:50:02 UTC ya make is running...
🟡 2024-11-08 15:01:55 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?
8976 8894 0 34 11 37

🟢 2024-11-08 15:02:44 UTC Build successful.
🟢 2024-11-08 15:03:17 UTC ydbd size 5.7 GiB changed* by +26.5 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 65dc86e merge: 76bd74b diff diff %
ydbd size 6 165 160 816 Bytes 6 165 187 936 Bytes +26.5 KiB +0.000%
ydbd stripped size 1 537 395 504 Bytes 1 537 405 552 Bytes +9.8 KiB +0.001%

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

@kardymonds kardymonds merged commit 9fb36d1 into ydb-platform:main Nov 8, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants