Skip to content

Commit

Permalink
add slt tests for embedding(bit, *)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsian committed Oct 16, 2024
1 parent ef11f63 commit b501129
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/sql/dml/insert/test_insert_embedding.slt
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,16 @@ SELECT * FROM sqllogic_test_insert_embedding;
0 [0.1,1.1,2.1,3.1,4.1,5.1,6.1,7.1,8.1,9.1,10.1,11.1,12.1,13.1,14.1,15.1]

statement ok
DROP TABLE sqllogic_test_insert_embedding;
DROP TABLE sqllogic_test_insert_embedding;

statement ok
CREATE TABLE sqllogic_test_insert_embedding (col1 INT, col2 EMBEDDING(BIT, 8));

query I
INSERT INTO sqllogic_test_insert_embedding VALUES(0, [0.0, 0.1, 0.2, 0.3, 0.3, 0.2, 0.1, 0.0]);
----

query II
SELECT * FROM sqllogic_test_insert_embedding;
----
0 [01111110]

0 comments on commit b501129

Please sign in to comment.