Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
zhli1142015 committed Jan 9, 2025
1 parent dd458b9 commit ccb7ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion velox/functions/sparksql/specialforms/FromJson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ struct ExtractJsonTypeImpl {
boost::algorithm::to_lower(key);
}
auto it = fieldIndices.find(key);
if (it != fieldIndices.end()) {
if (it != fieldIndices.end() && it->second >= 0) {
const auto index = it->second;
it->second = -1;

Expand Down

0 comments on commit ccb7ba9

Please sign in to comment.