Skip to content

Commit 88d7c91

Browse files
committed
fix
1 parent 73fcd28 commit 88d7c91

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/query/functions-v2/src/scalars/string_multi_args.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
use std::sync::Arc;
1616

17+
use common_expression::types::NumberDataType;
1718
use common_expression::types::number::UInt8Type;
1819
use common_expression::types::string::StringColumn;
1920
use common_expression::types::string::StringColumnBuilder;
@@ -248,7 +249,7 @@ pub fn register(registry: &mut FunctionRegistry) {
248249
Some(Arc::new(Function {
249250
signature: FunctionSignature {
250251
name: "char",
251-
args_type: vec![DataType::UInt8; args_type.len()],
252+
args_type: vec![DataType::Number(NumberDataType::UInt8); args_type.len()],
252253
return_type: DataType::String,
253254
property: FunctionProperty::default(),
254255
},
@@ -265,7 +266,7 @@ pub fn register(registry: &mut FunctionRegistry) {
265266
Some(Arc::new(Function {
266267
signature: FunctionSignature {
267268
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()],
269270
return_type: DataType::Nullable(Box::new(DataType::String)),
270271
property: FunctionProperty::default(),
271272
},

0 commit comments

Comments
 (0)