Skip to content

Commit

Permalink
Fix loop variable shadowing (#6139)
Browse files Browse the repository at this point in the history
  • Loading branch information
igormunkin authored Jul 2, 2024
1 parent ceb5097 commit 48a2519
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ydb/library/yql/public/udf/arrow/udf_arrow_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ class TSimpleArrowUdfImpl : public TBoxedValue {
argDatums[i] = scalar;
} else {
TVector<std::shared_ptr<arrow::Array>> imported(chunkCount);
for (ui32 i = 0; i < chunkCount; ++i) {
for (ui32 k = 0; k < chunkCount; ++k) {
ArrowArray a;
valueBuilder->ExportArrowBlock(args[i], i, &a);
valueBuilder->ExportArrowBlock(args[i], k, &a);
auto arr = ARROW_RESULT(arrow::ImportArray(&a, ArgArrowTypes_[i]));
imported[i] = arr;
imported[k] = arr;
}

if (chunkCount == 1) {
Expand Down

0 comments on commit 48a2519

Please sign in to comment.