diff --git a/ydb/library/yql/public/udf/arrow/udf_arrow_helpers.h b/ydb/library/yql/public/udf/arrow/udf_arrow_helpers.h index 5b75c5196020..ea04ca831fd8 100644 --- a/ydb/library/yql/public/udf/arrow/udf_arrow_helpers.h +++ b/ydb/library/yql/public/udf/arrow/udf_arrow_helpers.h @@ -142,11 +142,11 @@ class TSimpleArrowUdfImpl : public TBoxedValue { argDatums[i] = scalar; } else { TVector> 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) {