From b501129aee18b7bb37e7f181ae32e0b3cec9bced Mon Sep 17 00:00:00 2001 From: vsian Date: Wed, 16 Oct 2024 19:40:31 +0800 Subject: [PATCH] add slt tests for embedding(bit, *) --- test/sql/dml/insert/test_insert_embedding.slt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/sql/dml/insert/test_insert_embedding.slt b/test/sql/dml/insert/test_insert_embedding.slt index 886ae64085..6f9a23df2c 100644 --- a/test/sql/dml/insert/test_insert_embedding.slt +++ b/test/sql/dml/insert/test_insert_embedding.slt @@ -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; \ No newline at end of file +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]