Skip to content

Commit

Permalink
Little fix
Browse files Browse the repository at this point in the history
Signed-off-by: yibin <[email protected]>
  • Loading branch information
yibin87 committed Dec 1, 2022
1 parent 2a6436c commit abad855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions expression/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -1165,8 +1165,8 @@ func scalarExprSupportedByFlash(function *ScalarFunction) bool {
return false
case tipb.ScalarFuncSig_JsonUnquoteSig:
// TiFlash json_unquote now only supports json string generated by cast(json as string)
if child_func, ok := function.GetArgs()[0].(*ScalarFunction); ok {
return child_func.Function.PbCode() == tipb.ScalarFuncSig_CastJsonAsString
if childFunc, ok := function.GetArgs()[0].(*ScalarFunction); ok {
return childFunc.Function.PbCode() == tipb.ScalarFuncSig_CastJsonAsString
}
return false
}
Expand Down

0 comments on commit abad855

Please sign in to comment.