Skip to content

Commit

Permalink
Fix references in Next and DocValuesIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelv committed Sep 27, 2023
1 parent 4c42c76 commit 349bf1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/parquet/parquetembed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<rapidjson::Document> &rows,
DocValuesIterator(const std::vector<rapidjson::Document> &&rows,
std::vector<std::string> path, int64_t array_levels)
: rows(rows), path(std::move(path)), array_levels(array_levels) {}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 349bf1b

Please sign in to comment.