From f803265076bce7ea778a41a1f61f6a74b645cc49 Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 3 Dec 2024 14:09:58 +0100 Subject: [PATCH] debugs skip strategy --- .../engine/query/operators/transform/filter/LateFilter.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vitrivr-engine-query/src/main/kotlin/org/vitrivr/engine/query/operators/transform/filter/LateFilter.kt b/vitrivr-engine-query/src/main/kotlin/org/vitrivr/engine/query/operators/transform/filter/LateFilter.kt index 8daba77a..4a144402 100644 --- a/vitrivr-engine-query/src/main/kotlin/org/vitrivr/engine/query/operators/transform/filter/LateFilter.kt +++ b/vitrivr-engine-query/src/main/kotlin/org/vitrivr/engine/query/operators/transform/filter/LateFilter.kt @@ -59,9 +59,9 @@ class LateFilter( if (descriptors.isEmpty() || descriptors.first().values().containsKey(keys[0]).not()) { when (skip) { Skip.ERROR -> throw IllegalArgumentException("no descriptor found for field $fieldName") - Skip.WARN -> logger.warn { "no descriptor found for field $fieldName" } + Skip.WARN -> logger.warn { "no descriptor found for field $fieldName" }.also { return@forEach } Skip.IGNORE -> return@forEach - Skip.FORWARD -> emit(retrieved) + Skip.FORWARD -> emit(retrieved).also { return@forEach } } } @@ -109,7 +109,7 @@ enum class Skip(val strategy: String) { WARN.strategy -> WARN IGNORE.strategy -> IGNORE FORWARD.strategy -> FORWARD - else -> throw IllegalArgumentException("Cannot parse '$str") + else -> ERROR } } }