From abad855993b3a872f98d5c59ca92027f50b15e39 Mon Sep 17 00:00:00 2001 From: yibin Date: Thu, 1 Dec 2022 14:09:47 +0800 Subject: [PATCH] Little fix Signed-off-by: yibin --- expression/expression.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expression/expression.go b/expression/expression.go index 9b635f4f5f459..2155376730748 100644 --- a/expression/expression.go +++ b/expression/expression.go @@ -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 }