From 11c107d66d73013a0142e77b923ad26edc0d5eb7 Mon Sep 17 00:00:00 2001 From: David Sisson Date: Wed, 5 Jul 2023 10:42:39 -0700 Subject: [PATCH] Fixed map insert on Linux. --- .../textplan/converter/InitialPlanProtoVisitor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/substrait/textplan/converter/InitialPlanProtoVisitor.cpp b/src/substrait/textplan/converter/InitialPlanProtoVisitor.cpp index 4a69e5b3..17e6f1ce 100644 --- a/src/substrait/textplan/converter/InitialPlanProtoVisitor.cpp +++ b/src/substrait/textplan/converter/InitialPlanProtoVisitor.cpp @@ -466,9 +466,9 @@ void InitialPlanProtoVisitor::updateLocalSchema( } } if (field->alias.empty()) { - size_t fieldRefNum = relationData->generatedFieldReferences.size() - 1; - relationData->seenFieldReferenceNames.insert( - std::make_tuple(field->name, fieldRefNum)); + relationData->seenFieldReferenceNames.insert(std::make_pair( + field->name, + relationData->generatedFieldReferences.size() - 1)); } } else { ::substrait::proto::Rel sanitizedRelation = *currentRelationScope_;