File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
marklogic-client-api/src/test/java/com/marklogic/client/test/rows Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 33import com .fasterxml .jackson .databind .node .ArrayNode ;
44import com .marklogic .client .FailedRequestException ;
55import com .marklogic .client .expression .PlanBuilder ;
6+ import com .marklogic .client .io .StringHandle ;
7+ import com .marklogic .client .row .RawQueryDSLPlan ;
68import com .marklogic .client .row .RowRecord ;
79import com .marklogic .client .test .junit5 .RequiresML12 ;
810import com .marklogic .client .type .ServerExpression ;
@@ -126,4 +128,12 @@ void bindVectorFromDocs() {
126128 List <RowRecord > rows = resultRows (plan );
127129 assertEquals (1 , rows .size ());
128130 }
131+
132+ @ Test
133+ void vecVectorWithCol () {
134+ String query = "op.fromView('vectors', 'persons').limit(2).bind(op.as('summaryCosineSim', op.vec.vector(op.col('embedding'))))" ;
135+ RawQueryDSLPlan plan = rowManager .newRawQueryDSLPlan (new StringHandle (query ));
136+ List <RowRecord > rows = resultRows (plan );
137+ assertEquals (2 , rows .size ());
138+ }
129139}
Original file line number Diff line number Diff line change 22# Can be overridden via e.g. `MARKLOGIC_TAG=latest-10.0 docker-compose up -d --build`.
33MARKLOGIC_IMAGE = progressofficial/marklogic-db:latest
44MARKLOGIC_LOGS_VOLUME = ./docker/marklogic/logs
5+
6+ # This image should be used instead of the above image when testing functions that only work with MarkLogic 12.
7+ # MARKLOGIC_IMAGE=ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-12
You can’t perform that action at this time.
0 commit comments