File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ private void example(boolean read_binary) throws SQLException {
4747 }
4848
4949 Statement indexStmt = conn .createStatement ();
50- indexStmt .executeUpdate ("CREATE INDEX jdbc_index ON jdbc_items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100)" );
50+ indexStmt .executeUpdate ("CREATE INDEX ON jdbc_items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100)" );
5151
5252 conn .close ();
5353 }
Original file line number Diff line number Diff line change @@ -35,6 +35,6 @@ public void example() throws SQLException {
3535 System .out .println (row .get ("embedding" ));
3636 }
3737
38- jdbcTemplate .execute ("CREATE INDEX spring_index ON spring_items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100)" );
38+ jdbcTemplate .execute ("CREATE INDEX ON spring_items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100)" );
3939 }
4040}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class JDBCScalaTest {
3434 }
3535
3636 val indexStmt = conn.createStatement()
37- indexStmt.executeUpdate(" CREATE INDEX jdbc_scala_index ON jdbc_scala_items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100)" )
37+ indexStmt.executeUpdate(" CREATE INDEX ON jdbc_scala_items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100)" )
3838
3939 conn.close()
4040 }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class SlickTest {
3939 db.run(sql " SELECT * FROM slick_items ORDER BY embedding <-> $embedding::vector LIMIT 5 " .as[(String )].map(println))
4040 }.flatMap { _ =>
4141 // index
42- db.run(sqlu " CREATE INDEX slick_index ON slick_items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100) " )
42+ db.run(sqlu " CREATE INDEX ON slick_items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100) " )
4343 }
4444
4545 Await .result(resultFuture, Duration .Inf )
You can’t perform that action at this time.
0 commit comments