Skip to content

Commit

Permalink
[GLUTEN-6111][CH]Fix core problem of get_json_object #6113
Browse files Browse the repository at this point in the history
What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)

(Fixes: #6111)

How was this patch tested?
test by ut
  • Loading branch information
KevinyhZou authored Jun 18, 2024
1 parent be0ada5 commit 1ed8358
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file not shown.
2 changes: 1 addition & 1 deletion cpp-ch/local-engine/Functions/SparkFunctionGetJsonObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class FlattenJSONStringOnRequiredFunction : public DB::IFunction
tmp.push('{');
else if (ch == '}')
{
if (tmp.top() == '{')
if (!tmp.empty() && tmp.top() == '{')
tmp.pop();
}
if (tmp.empty())
Expand Down

0 comments on commit 1ed8358

Please sign in to comment.