aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorАлександр Новожилов <mrlolthe1st@ydb.tech>2024-04-19 13:36:53 +0300
committerGitHub <noreply@github.com>2024-04-19 13:36:53 +0300
commit5a79edd0948eed20f9dd8fcd996eea3bfbf5476e (patch)
tree1c1e9b58ac28147bdb94a7b41f77b8882d2114ad
parenta68faed0a7b525a750d5f566e5c3fc60424cc91e (diff)
downloadydb-5a79edd0948eed20f9dd8fcd996eea3bfbf5476e.tar.gz
Fix RPC reader (#3905)
-rw-r--r--ydb/library/yql/providers/yt/comp_nodes/dq/dq_yt_rpc_reader.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/ydb/library/yql/providers/yt/comp_nodes/dq/dq_yt_rpc_reader.cpp b/ydb/library/yql/providers/yt/comp_nodes/dq/dq_yt_rpc_reader.cpp
index 88d1b21aa8..81b82ef649 100644
--- a/ydb/library/yql/providers/yt/comp_nodes/dq/dq_yt_rpc_reader.cpp
+++ b/ydb/library/yql/providers/yt/comp_nodes/dq/dq_yt_rpc_reader.cpp
@@ -200,10 +200,12 @@ bool TParallelFileInputState::NextValue() {
MkqlReader_.Next();
return true;
}
- if (MkqlReader_.GetRowIndexUnchecked()) {
- StateByReader_[CurrentInput_].CurrentRow = *MkqlReader_.GetRowIndexUnchecked() - 1;
+ if (!Settings_->Requests.empty()) {
+ if (MkqlReader_.GetRowIndexUnchecked()) {
+ StateByReader_[CurrentInput_].CurrentRow = *MkqlReader_.GetRowIndexUnchecked() - 1;
+ }
+ StateByReader_[CurrentInput_].CurrentRange = MkqlReader_.GetRangeIndexUnchecked();
}
- StateByReader_[CurrentInput_].CurrentRange = MkqlReader_.GetRangeIndexUnchecked();
bool needWait = false;
{
std::lock_guard lock(InnerState_->Lock);