diff --git a/src/operator/src/expr_factory.rs b/src/operator/src/expr_factory.rs index 99f84d3708e0..b9c1fbd445e8 100644 --- a/src/operator/src/expr_factory.rs +++ b/src/operator/src/expr_factory.rs @@ -815,10 +815,10 @@ mod tests { }; assert_eq!(2, set_database_options.len()); - assert_eq!("key1", set_database_options.get(0).unwrap().key); - assert_eq!("value1", set_database_options.get(0).unwrap().value); - assert_eq!("key2", set_database_options.get(1).unwrap().key); - assert_eq!("value2", set_database_options.get(1).unwrap().value); + assert_eq!("key1", set_database_options[0].key); + assert_eq!("value1", set_database_options[0].value); + assert_eq!("key2", set_database_options[1].key); + assert_eq!("value2", set_database_options[1].value); let sql = "ALTER DATABASE greptime UNSET key1, key2;"; let stmt =