diff options
author | Александр Новожилов <mrlolthe1st@ydb.tech> | 2024-04-19 13:36:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 13:36:53 +0300 |
commit | 5a79edd0948eed20f9dd8fcd996eea3bfbf5476e (patch) | |
tree | 1c1e9b58ac28147bdb94a7b41f77b8882d2114ad | |
parent | a68faed0a7b525a750d5f566e5c3fc60424cc91e (diff) | |
download | ydb-5a79edd0948eed20f9dd8fcd996eea3bfbf5476e.tar.gz |
Fix RPC reader (#3905)
-rw-r--r-- | ydb/library/yql/providers/yt/comp_nodes/dq/dq_yt_rpc_reader.cpp | 8 |
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); |