File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/query/functions-v2/src/scalars Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 14
14
15
15
use std:: sync:: Arc ;
16
16
17
+ use common_expression:: types:: NumberDataType ;
17
18
use common_expression:: types:: number:: UInt8Type ;
18
19
use common_expression:: types:: string:: StringColumn ;
19
20
use common_expression:: types:: string:: StringColumnBuilder ;
@@ -248,7 +249,7 @@ pub fn register(registry: &mut FunctionRegistry) {
248
249
Some ( Arc :: new ( Function {
249
250
signature : FunctionSignature {
250
251
name : "char" ,
251
- args_type : vec ! [ DataType :: UInt8 ; args_type. len( ) ] ,
252
+ args_type : vec ! [ DataType :: Number ( NumberDataType :: UInt8 ) ; args_type. len( ) ] ,
252
253
return_type : DataType :: String ,
253
254
property : FunctionProperty :: default ( ) ,
254
255
} ,
@@ -265,7 +266,7 @@ pub fn register(registry: &mut FunctionRegistry) {
265
266
Some ( Arc :: new ( Function {
266
267
signature : FunctionSignature {
267
268
name : "char" ,
268
- args_type : vec ! [ DataType :: Nullable ( Box :: new( DataType :: UInt8 ) ) ; args_type. len( ) ] ,
269
+ args_type : vec ! [ DataType :: Nullable ( Box :: new( DataType :: Number ( NumberDataType :: UInt8 ) ) ) ; args_type. len( ) ] ,
269
270
return_type : DataType :: Nullable ( Box :: new ( DataType :: String ) ) ,
270
271
property : FunctionProperty :: default ( ) ,
271
272
} ,
You can’t perform that action at this time.
0 commit comments