From 349bf1b0cc624c6b59a3f3051a56b6bfd4d00544 Mon Sep 17 00:00:00 2001 From: Jack Del Vecchio Date: Wed, 27 Sep 2023 18:16:49 +0000 Subject: [PATCH] Fix references in Next and DocValuesIterator --- plugins/parquet/parquetembed.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/parquet/parquetembed.hpp b/plugins/parquet/parquetembed.hpp index 4f92e52eb18..0fb573f075d 100644 --- a/plugins/parquet/parquetembed.hpp +++ b/plugins/parquet/parquetembed.hpp @@ -289,7 +289,7 @@ class DocValuesIterator /// \param rows vector of rows /// \param path field names to enter /// \param array_levels number of arrays to enter - DocValuesIterator(const std::vector &rows, + DocValuesIterator(const std::vector &&rows, std::vector path, int64_t array_levels) : rows(rows), path(std::move(path)), array_levels(array_levels) {} @@ -337,7 +337,7 @@ class DocValuesIterator // Can either start at document or at last array level if (array_stack.size() > 0) { - auto pos = array_stack.back(); + auto &pos = array_stack.back(); value = pos.array_node; path_i = pos.path_index; arr_i = array_stack.size() - 1;