Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types: fix incompatible implementation of jsonpath extraction #35320

Merged
merged 13 commits into from
Jun 28, 2022
Merged
5 changes: 0 additions & 5 deletions types/json/binary_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,6 @@ func (bj BinaryJSON) Extract(pathExprList []PathExpression) (ret BinaryJSON, fou
}
if len(buf) == 0 {
found = false
} else if len(pathExprList) == 1 && len(buf) == 1 {
// If pathExpr contains asterisks, len(elemList) won't be 1
// even if len(pathExprList) equals to 1.
found = true
ret = buf[0]
} else {
found = true
ret = buildBinaryArray(buf)
Expand Down