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> {
4438
4438
..
4439
4439
} ) ] => {
4440
4440
let col_data_type = data_type. remove_nullable ( ) ;
4441
+ let target_type = target_type. remove_nullable ( ) ;
4441
4442
if table_index. is_some ( )
4442
4443
&& matches ! ( col_data_type, DataType :: Vector ( _) )
4443
4444
&& matches ! ( & * * argument, ScalarExpr :: ConstantExpr ( _) )
4444
- && matches ! ( & * * target_type, DataType :: Vector ( _) )
4445
+ && matches ! ( & target_type, DataType :: Vector ( _) )
4445
4446
&& LicenseManagerSwitch :: instance ( )
4446
4447
. check_enterprise_enabled (
4447
4448
self . ctx . get_license_key ( ) ,
@@ -4514,6 +4515,7 @@ impl<'a> TypeChecker<'a> {
4514
4515
let Scalar :: Array ( arg_col) = arg. value else {
4515
4516
return None ;
4516
4517
} ;
4518
+ let arg_col = arg_col. remove_nullable ( ) ;
4517
4519
4518
4520
let col_vector_type = col_data_type. as_vector ( ) . unwrap ( ) ;
4519
4521
let col_dimension = col_vector_type. dimension ( ) as usize ;
You canโt perform that action at this time.
0 commit comments