teragrep / pth_10

Data Processing Language (DPL) translator for Apache Spark
GNU Affero General Public License v3.0
0 stars 2 forks source link

pth_10 sets pth_06 datasource option bloom.enabled if wildcards are not used #254

Closed kortemik closed 4 months ago

kortemik commented 4 months ago

Describe the bug

Change happened between 5.1.0 and 4.20.1:

-        // wildcard search check
+        // wildcard search check: disable bloom if wildcard present
         if (catCtx != null) {
-            reader = reader.option("bloom.withoutFilter", catCtx.isWildcardSearchUsed());
+            reader = reader.option("bloom.enabled", !catCtx.isWildcardSearchUsed());
         }

this causes pth_06 to expect bloomdb to be present and fail in environments where such db is not present.

Expected behavior bloom.enabled should be set to true only if config is set to true and no wildcards are used

How to reproduce

Screenshots

Software version 5.1.0

Desktop (please complete the following information if relevant):

Additional context