Skip to content

Commit

Permalink
remove the 'vector-type-enable' in test
Browse files Browse the repository at this point in the history
Signed-off-by: “EricZequan” <[email protected]>
  • Loading branch information
EricZequan committed Aug 5, 2024
1 parent 093d2a7 commit c453c02
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/expression/integration_test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ func TestVectorAssignVariable(t *testing.T) {

tk := testkit.NewTestKit(t, store)
tk.MustExec("USE test;")
tk.MustExec("SET @@GLOBAL.TIDB_ENABLE_VECTOR_TYPE=1;")
tk.MustExec(`SET @a = VEC_FROM_TEXT('[1,2,3]');`)
tk.MustQuery(`SELECT @a;`).Check(testkit.Rows("[1,2,3]"))
}
Expand All @@ -335,7 +334,6 @@ func TestVectorControlFlow(t *testing.T) {

tk := testkit.NewTestKit(t, store)
tk.MustExec("USE test;")
tk.MustExec("SET @@GLOBAL.TIDB_ENABLE_VECTOR_TYPE=1;")

// IF
tk.MustQuery("SELECT IF(VEC_FROM_TEXT('[1, 2, 3]'), 1, 0);").Check(testkit.Rows("1"))
Expand All @@ -358,7 +356,6 @@ func TestVectorStringCompare(t *testing.T) {

tk := testkit.NewTestKit(t, store)
tk.MustExec("USE test;")
tk.MustExec("SET @@GLOBAL.TIDB_ENABLE_VECTOR_TYPE=1;")

tk.MustExec("DROP TABLE IF EXISTS t1;")
tk.MustExec("CREATE TABLE t1 (val vector);")
Expand Down Expand Up @@ -509,7 +506,6 @@ func TestVectorArithmatic(t *testing.T) {

tk := testkit.NewTestKit(t, store)
tk.MustExec("USE test;")
tk.MustExec("SET @@GLOBAL.TIDB_ENABLE_VECTOR_TYPE=1;")
tk.MustExec(`CREATE TABLE t(embedding VECTOR);`)
tk.MustExec(`INSERT INTO t VALUES
('[1, 2, 3]'),
Expand Down

0 comments on commit c453c02

Please sign in to comment.