diff --git a/velox/functions/lib/RowsTranslationUtil.h b/velox/functions/lib/RowsTranslationUtil.h index 97185203ba28..0d3a3138d4b2 100644 --- a/velox/functions/lib/RowsTranslationUtil.h +++ b/velox/functions/lib/RowsTranslationUtil.h @@ -41,9 +41,9 @@ SelectivityVector toElementRows( auto rawNulls = arrayBaseVector->rawNulls(); auto rawSizes = arrayBaseVector->rawSizes(); auto rawOffsets = arrayBaseVector->rawOffsets(); - const auto sizeRange = + VELOX_DEBUG_ONLY const auto sizeRange = arrayBaseVector->sizes()->template asRange().end(); - const auto offsetRange = + VELOX_DEBUG_ONLY const auto offsetRange = arrayBaseVector->offsets()->template asRange().end(); SelectivityVector elementRows(size, false);