File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import (
2424 "github.com/dolthub/go-mysql-server/sql/expression/function/aggregation/window"
2525 "github.com/dolthub/go-mysql-server/sql/expression/function/json"
2626 "github.com/dolthub/go-mysql-server/sql/expression/function/spatial"
27+ "github.com/dolthub/go-mysql-server/sql/expression/function/vector"
2728)
2829
2930// ErrFunctionAlreadyRegistered is thrown when a function is already registered
@@ -309,6 +310,8 @@ var BuiltIns = []sql.Function{
309310 sql.FunctionN {Name : "week" , Fn : NewWeek },
310311 sql.Function1 {Name : "values" , Fn : NewValues },
311312 sql.Function1 {Name : "validate_password_strength" , Fn : NewValidatePasswordStrength },
313+ sql.Function2 {Name : "vec_distance" , Fn : vector .NewL2SquaredDistance },
314+ sql.Function2 {Name : "vec_distance_l2_squared" , Fn : vector .NewL2SquaredDistance },
312315 sql.Function1 {Name : "weekday" , Fn : NewWeekday },
313316 sql.Function1 {Name : "weekofyear" , Fn : NewWeekOfYear },
314317 sql.Function1 {Name : "year" , Fn : NewYear },
You can’t perform that action at this time.
0 commit comments