From 967e63d75625d6e606690ee587adfb9f09df590b Mon Sep 17 00:00:00 2001 From: Kexiang Wang Date: Mon, 22 Jul 2024 14:32:40 -0400 Subject: [PATCH] fix test --- src/connector/src/parser/unified/json.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connector/src/parser/unified/json.rs b/src/connector/src/parser/unified/json.rs index ca709e2eebc73..bf1444288af48 100644 --- a/src/connector/src/parser/unified/json.rs +++ b/src/connector/src/parser/unified/json.rs @@ -261,7 +261,7 @@ impl JsonParseOptions { DataType::Int16, ValueType::I64 | ValueType::I128 | ValueType::U64 | ValueType::U128, ) => value.try_as_i16().map_err(|_| create_error())?.into(), - + (DataType::Int16, ValueType::Bool) => (value.as_bool().unwrap() as i16).into(), (DataType::Int16, ValueType::String) if matches!( self.numeric_handling, @@ -282,7 +282,7 @@ impl JsonParseOptions { DataType::Int32, ValueType::I64 | ValueType::I128 | ValueType::U64 | ValueType::U128, ) => value.try_as_i32().map_err(|_| create_error())?.into(), - + (DataType::Int32, ValueType::Bool) => (value.as_bool().unwrap() as i32).into(), (DataType::Int32, ValueType::String) if matches!( self.numeric_handling, @@ -303,7 +303,7 @@ impl JsonParseOptions { DataType::Int64, ValueType::I64 | ValueType::I128 | ValueType::U64 | ValueType::U128, ) => value.try_as_i64().map_err(|_| create_error())?.into(), - + (DataType::Int64, ValueType::Bool) => (value.as_bool().unwrap() as i64).into(), (DataType::Int64, ValueType::String) if matches!( self.numeric_handling,