aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreivanov89 <eivanov89@ydb.tech>2023-01-31 20:16:00 +0300
committereivanov89 <eivanov89@ydb.tech>2023-01-31 20:16:00 +0300
commit9e9a539f90b6551d4626af86d5b66f8447349936 (patch)
tree2d8d4346ba6490e50bb61c13106c16877f5aa566
parenta4af50c830dfb9c71c06e2a3a68362062cdb07b6 (diff)
downloadydb-9e9a539f90b6551d4626af86d5b66f8447349936.tar.gz
cleanup
-rw-r--r--ydb/core/tx/datashard/datashard__read_iterator.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/ydb/core/tx/datashard/datashard__read_iterator.cpp b/ydb/core/tx/datashard/datashard__read_iterator.cpp
index 3311680d9f7..5d99b26113f 100644
--- a/ydb/core/tx/datashard/datashard__read_iterator.cpp
+++ b/ydb/core/tx/datashard/datashard__read_iterator.cpp
@@ -395,16 +395,12 @@ public:
return EReadStatus::Done;
}
- if (ColumnTypes.size()) {
- // TODO: looks kind of ugly: we assume that cells in rowState are stored in array
- TDbTupleRef value(&ColumnTypes[0], &rowState.Get(0), ColumnTypes.size());
+ // TODO: looks kind of ugly: we assume that cells in rowState are stored in array
+ TDbTupleRef value(ColumnTypes.data(), (*rowState).data(), ColumnTypes.size());
- // note that if user requests key columns then they will be in
- // rowValues and we don't have to add rowKey columns
- BlockBuilder.AddRow(TDbTupleRef(), value);
- } else {
- BlockBuilder.AddRow(TDbTupleRef(), TDbTupleRef());
- }
+ // note that if user requests key columns then they will be in
+ // rowValues and we don't have to add rowKey columns
+ BlockBuilder.AddRow(TDbTupleRef(), value);
++RowsRead;