File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/query/sql/src/planner/semantic Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4438,10 +4438,11 @@ impl<'a> TypeChecker<'a> {
44384438 ..
44394439 } ) ] => {
44404440 let col_data_type = data_type. remove_nullable ( ) ;
4441+ let target_type = target_type. remove_nullable ( ) ;
44414442 if table_index. is_some ( )
44424443 && matches ! ( col_data_type, DataType :: Vector ( _) )
44434444 && matches ! ( & * * argument, ScalarExpr :: ConstantExpr ( _) )
4444- && matches ! ( & * * target_type, DataType :: Vector ( _) )
4445+ && matches ! ( & target_type, DataType :: Vector ( _) )
44454446 && LicenseManagerSwitch :: instance ( )
44464447 . check_enterprise_enabled (
44474448 self . ctx . get_license_key ( ) ,
@@ -4514,6 +4515,7 @@ impl<'a> TypeChecker<'a> {
45144515 let Scalar :: Array ( arg_col) = arg. value else {
45154516 return None ;
45164517 } ;
4518+ let arg_col = arg_col. remove_nullable ( ) ;
45174519
45184520 let col_vector_type = col_data_type. as_vector ( ) . unwrap ( ) ;
45194521 let col_dimension = col_vector_type. dimension ( ) as usize ;
You can’t perform that action at this time.
0 commit comments