Skip to content

fix(kqp): support stream lookup backward compatibility #4149

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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ydb/core/kqp/runtime/kqp_stream_lookup_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ class TKqpStreamLookupActor : public NActors::TActorBootstrapped<TKqpStreamLooku

void Bootstrap() {
CA_LOG_D("Start stream lookup actor");

Counters->StreamLookupActorsCount->Inc();

if (!StreamLookupWorker) {
return RuntimeError(TStringBuilder() << "Uninitialized StreamLookupWorker",
NYql::NDqProto::StatusIds::INTERNAL_ERROR);
}

ResolveTableShards();
Become(&TKqpStreamLookupActor::StateFunc);
}
Expand Down
1 change: 1 addition & 0 deletions ydb/core/kqp/runtime/kqp_stream_lookup_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ std::unique_ptr<TKqpStreamLookupWorker> CreateStreamLookupWorker(NKikimrKqp::TKq
const NYql::NDqProto::TTaskInput& inputDesc) {

switch (settings.GetLookupStrategy()) {
case NKqpProto::EStreamLookupStrategy::UNSPECIFIED: // for backward compatibility
case NKqpProto::EStreamLookupStrategy::LOOKUP:
return std::make_unique<TKqpLookupRows>(std::move(settings), typeEnv, holderFactory, inputDesc);
case NKqpProto::EStreamLookupStrategy::JOIN:
Expand Down
Loading