We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4fab67 commit 158df61Copy full SHA for 158df61
ydb/library/yql/dq/runtime/dq_arrow_helpers.cpp
@@ -1002,8 +1002,10 @@ class TBlockSplitter : public IBlockSplitter {
1002
}
1003
1004
TItem PopBack(ui64 length) {
1005
- std::vector<arrow::Datum> backData = Data;
+ MKQL_ENSURE(length <= NumberRows, "Can not pop more than number of rows");
1006
const auto offset = NumberRows - length;
1007
+
1008
+ std::vector<arrow::Datum> backData = Data;
1009
for (ui64 i : ArraysIdx) {
1010
const auto& array = *Data[i].array();
1011
Data[i] = arrow::Datum(array.Slice(0, offset));
0 commit comments