Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ppanopticon committed Jun 12, 2024
2 parents 8f5d577 + f272b61 commit 5fed885
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ abstract class AbstractDescriptorReader<D : Descriptor>(final override val field
*/
protected fun fetchRetrievable(ids: Iterable<RetrievableId>): Map<RetrievableId, Retrieved> {
/* Prepare Cottontail DB query. */
val query = org.vitrivr.cottontail.client.language.dql.Query(this.entityName).select("*").where(
val entityName = this.entityName.schema().entity(RETRIEVABLE_ENTITY_NAME)
val query = org.vitrivr.cottontail.client.language.dql.Query(entityName).select("*").where(
Compare(
Column(this.entityName.column(RETRIEVABLE_ID_COLUMN_NAME)),
Column(entityName.column(RETRIEVABLE_ID_COLUMN_NAME)),
Compare.Operator.IN,
org.vitrivr.cottontail.client.language.basics.expression.List(ids.map { UuidValue(it) }.toTypedArray())
)
Expand Down

0 comments on commit 5fed885

Please sign in to comment.