diff --git a/src/main/java/org/rumbledb/runtime/flwor/clauses/WhereClauseSparkIterator.java b/src/main/java/org/rumbledb/runtime/flwor/clauses/WhereClauseSparkIterator.java index 23a926857..b4f0d7088 100644 --- a/src/main/java/org/rumbledb/runtime/flwor/clauses/WhereClauseSparkIterator.java +++ b/src/main/java/org/rumbledb/runtime/flwor/clauses/WhereClauseSparkIterator.java @@ -452,7 +452,8 @@ public static FlworDataFrame tryNativeQuery( .sparkSession() .sql( String.format( - "select * from %s where %s", + // Spark SQL but confusing where (FALSE) with a table and column name. + "select * from %s where true and %s", input, nativeQuery.getResultingQuery() )