Skip to content

Conversation

@zverevgeny
Copy link
Collaborator

No description provided.

@zverevgeny zverevgeny requested review from a team as code owners June 15, 2024 10:41
@github-actions
Copy link

github-actions bot commented Jun 15, 2024

2024-06-15 10:44:31 UTC Pre-commit check for d770236 has started.
2024-06-15 10:47:03 UTC Build linux-x86_64-release-clang14 is running...
🔴 2024-06-15 10:58:13 UTC Build failed. see the build logs.

@github-actions
Copy link

github-actions bot commented Jun 15, 2024

2024-06-15 10:44:35 UTC Pre-commit check for d770236 has started.
2024-06-15 10:47:14 UTC Build linux-x86_64-relwithdebinfo is running...
🔴 2024-06-15 11:00:10 UTC Build failed. see the build logs.
🔴 2024-06-15 11:00:11 UTC Tests run skipped.

@github-actions
Copy link

github-actions bot commented Jun 15, 2024

2024-06-15 10:44:36 UTC Pre-commit check for d770236 has started.
2024-06-15 10:47:09 UTC Build linux-x86_64-release-asan is running...
🔴 2024-06-15 11:00:00 UTC Build failed. see the build logs.
🔴 2024-06-15 11:00:02 UTC Tests run skipped.

~TEvLookupRequest() {
auto guard = Guard(*Alloc);
Keys = NKikimr::NMiniKQL::TUnboxedValueVector{};
Request = TUnboxedValueMap{0, {{}, false, nullptr}, {{}, false, nullptr}};
Copy link
Collaborator

Choose a reason for hiding this comment

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

в чем ценность такой сложной конструкции? почему нельзя написать Request = {} ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Упростил. Request = {} писать нельзя, т.к. не дефолтных конструкторов у TValueHasher и TValueEqual

auto& [k, v] = lookupResult[1];
UNIT_ASSERT_EQUAL(1, k.GetElement(0).Get<ui64>());
UNIT_ASSERT_EQUAL(101, k.GetElement(1).Get<ui64>());
} else UNIT_ASSERT(false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

давай избавимся от этих UNIT_ASSERT(false) и излишних ветвлений. мне такой стиль тяжело читать
вот так легче:

auto v = lookupResult->FindPtr(....);
UNIT_ASSERT(v);
NYql::NUdf::TUnboxedValue val = v->GetElement(0);
UNIT_ASSERT(val.AsStringRef() == TStringBuf("a"));

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

переписал

UNIT_ASSERT_EQUAL(0, k.GetElement(0).Get<ui64>());
UNIT_ASSERT_EQUAL(100, k.GetElement(1).Get<ui64>());
if (const auto* v = lookupResult->FindPtr(CreateStructValue(holderFactory, {0, 100}))) {
NYql::NUdf::TUnboxedValue val = v.GetElement(0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

v - это же указатель вроде. почему тут v., а не v-> ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

переписал это место

}
void AsyncLookup(const NKikimr::NMiniKQL::TUnboxedValueVector& keys) override {
void AsyncLookup(IDqAsyncLookupSource::TUnboxedValueMap&& request) override {
auto guard = Guard(*Alloc);
Copy link
Collaborator

Choose a reason for hiding this comment

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

guard выглядит бесполезным тут

auto ev = new NDq::IDqAsyncLookupSource::TEvLookupRequest(Alloc, std::move(KeysToLookUp));
auto ev = new NDq::IDqAsyncLookupSource::TEvLookupRequest(Alloc, std::move(Request));
TActivationContext::ActorSystem()->Send(new NActors::IEventHandle(LookupActor, SelfId(), ev));
auto guard = Guard(*Alloc);
Copy link
Collaborator

Choose a reason for hiding this comment

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

guard выглядит бесполезным

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

удалил

YQL_CLOG(DEBUG, ProviderYt) << "ActorId=" << SelfId() << " Got LookupRequest for " << request.size() << " keys";
Y_ABORT_IF(InProgress);
Y_ABORT_IF(keys.size() > MaxKeysInRequest);
Y_ABORT_IF(request.size() > MaxKeysInRequest);
Copy link
Collaborator

Choose a reason for hiding this comment

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

давай тут не падать, лучше исключение бросить

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Это контракт, выраженный в коде. Трансформер сначала должен запросить у lookup актора максимально поддерживаемое кол-во ключей, а потом запрашивать не больше этого значения

@zverevgeny zverevgeny force-pushed the YQ-2068_unordered_for_lookup_req_resp branch from 33f69f5 to e32188e Compare June 15, 2024 12:03
@github-actions
Copy link

github-actions bot commented Jun 15, 2024

2024-06-15 12:06:46 UTC Pre-commit check for 878968f has started.
2024-06-15 12:09:21 UTC Build linux-x86_64-release-asan is running...
🟢 2024-06-15 12:24:19 UTC Build successful.
2024-06-15 12:24:38 UTC Tests are running...
🔴 2024-06-15 14:12:12 UTC Some tests failed, follow the links below.

Test history | Test log

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10952 10902 0 20 21 9

@github-actions
Copy link

github-actions bot commented Jun 15, 2024

2024-06-15 12:06:53 UTC Pre-commit check for 878968f has started.
2024-06-15 12:09:28 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-06-15 12:21:22 UTC Build successful.

@github-actions
Copy link

github-actions bot commented Jun 15, 2024

2024-06-15 12:06:54 UTC Pre-commit check for 878968f has started.
2024-06-15 12:09:28 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-06-15 12:21:39 UTC Build successful.
2024-06-15 12:21:58 UTC Tests are running...
🔴 2024-06-15 14:08:10 UTC Some tests failed, follow the links below.

Test history | Test log

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
38988 34160 0 3 4818 7

@github-actions
Copy link

github-actions bot commented Jun 15, 2024

2024-06-15 15:24:54 UTC Pre-commit check for 0647a5e has started.
2024-06-15 15:27:33 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-06-15 15:39:31 UTC Build successful.

@github-actions
Copy link

github-actions bot commented Jun 15, 2024

2024-06-15 15:25:10 UTC Pre-commit check for 0647a5e has started.
2024-06-15 15:27:44 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-06-15 15:40:10 UTC Build successful.
2024-06-15 15:40:28 UTC Tests are running...
🔴 2024-06-15 17:25:19 UTC Some tests failed, follow the links below.

Test history | Test log

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
38991 34161 0 2 4818 10

@github-actions
Copy link

github-actions bot commented Jun 15, 2024

2024-06-15 15:25:12 UTC Pre-commit check for 0647a5e has started.
2024-06-15 15:27:45 UTC Build linux-x86_64-release-asan is running...
🟢 2024-06-15 15:40:34 UTC Build successful.
2024-06-15 15:40:50 UTC Tests are running...
🔴 2024-06-15 17:31:37 UTC Some tests failed, follow the links below.

Test history | Test log

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10959 10911 0 16 20 12

@zverevgeny zverevgeny requested a review from uzhastik June 17, 2024 09:08
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