From 75b8f75e07d3924d160cb627e06a7154727eb882 Mon Sep 17 00:00:00 2001 From: Yang Keao Date: Mon, 13 May 2024 15:16:34 +0800 Subject: [PATCH] clarify the cast(... as char array) error message Signed-off-by: Yang Keao --- pkg/expression/builtin_cast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/expression/builtin_cast.go b/pkg/expression/builtin_cast.go index 6c6324af3b37dd..45e3589f86c17f 100644 --- a/pkg/expression/builtin_cast.go +++ b/pkg/expression/builtin_cast.go @@ -455,7 +455,7 @@ func (c *castAsArrayFunctionClass) getFunction(ctx BuildContext, args []Expressi return nil, ErrNotSupportedYet.GenWithStackByArgs("specifying charset for multi-valued index") } if arrayType.EvalType() == types.ETString && arrayType.GetFlen() == types.UnspecifiedLength { - return nil, ErrNotSupportedYet.GenWithStackByArgs("CAST-ing data to array of char/binary BLOBs") + return nil, ErrNotSupportedYet.GenWithStackByArgs("CAST-ing data to array of char/binary BLOBs with unspecified length") } bf, err := newBaseBuiltinFunc(ctx, c.funcName, args, c.tp)