Skip to content

Conversation

@nepal
Copy link
Collaborator

@nepal nepal commented Dec 29, 2023

  • fix DqReplicate expansion

@nepal nepal requested review from rvu1024 and vitstn December 29, 2023 18:57
@github-actions
Copy link

github-actions bot commented Dec 29, 2023

Note

This is an automated comment that will be appended during run.

🔴 linux-x86_64-release-asan: some tests FAILED for commit 1db72be.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15739 15628 0 34 73 4

🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 1db72be.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
59607 50417 0 10 9174 6

@nepal nepal merged commit cfe1520 into ydb-platform:main Dec 29, 2023
@nepal nepal deleted the yql-17453-fix-dqreplicate-expansion branch December 29, 2023 21:05
adameat pushed a commit to adameat/ydb that referenced this pull request Dec 29, 2023
TVector<TExprBase> branches;
branches.reserve(dqReplicate.Args().Count() - 1);
const auto inputKind = dqReplicate.Arg(0).Ref().GetTypeAnn()->GetKind();
YQL_ENSURE(inputKind == ETypeAnnotationKind::Stream || inputKind == ETypeAnnotationKind::Flow);
Copy link
Member

Choose a reason for hiding this comment

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

Разве может быть что-то другое по типизации?

branches.emplace_back(ctx.DeepCopyLambda(dqReplicate.Args().Get(i).Ref()));
const auto lambdaOutputKind = dqReplicate.Arg(i).Ref().GetTypeAnn()->GetKind();
YQL_ENSURE(lambdaOutputKind == ETypeAnnotationKind::Stream || lambdaOutputKind == ETypeAnnotationKind::Flow);
if (lambdaOutputKind != inputKind) {
Copy link
Member

Choose a reason for hiding this comment

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

Как вообще могли получаться в DqReplicate лямбды с разными типами? Типизация DqReplicate не проверяет что ли это? Если нет, то нужно там править и править оптимизаторы, которые это порождают

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

не проверяет и не было очевидно что должна проверять

This was referenced Jan 11, 2024
@vitstn vitstn mentioned this pull request Feb 16, 2024
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.

3 participants