diff --git a/src/main/java/org/rumbledb/api/Rumble.java b/src/main/java/org/rumbledb/api/Rumble.java index a8ce75cc8..b30c4c53c 100644 --- a/src/main/java/org/rumbledb/api/Rumble.java +++ b/src/main/java/org/rumbledb/api/Rumble.java @@ -5,7 +5,6 @@ import org.rumbledb.context.DynamicContext; import org.rumbledb.expressions.module.MainModule; import org.rumbledb.runtime.RuntimeIterator; -import org.rumbledb.runtime.update.PendingUpdateList; import sparksoniq.spark.SparkSessionManager; import java.io.IOException; diff --git a/src/main/java/org/rumbledb/cli/JsoniqQueryExecutor.java b/src/main/java/org/rumbledb/cli/JsoniqQueryExecutor.java index 5702d3032..25c350a55 100644 --- a/src/main/java/org/rumbledb/cli/JsoniqQueryExecutor.java +++ b/src/main/java/org/rumbledb/cli/JsoniqQueryExecutor.java @@ -34,7 +34,6 @@ import org.rumbledb.optimizations.Profiler; import org.rumbledb.runtime.functions.input.FileSystemUtil; -import org.rumbledb.runtime.update.PendingUpdateList; import sparksoniq.spark.SparkSessionManager; import java.io.IOException; import java.net.URI; diff --git a/src/main/java/org/rumbledb/compiler/ExpressionClassificationVisitor.java b/src/main/java/org/rumbledb/compiler/ExpressionClassificationVisitor.java index 68ced5acf..7614931dc 100644 --- a/src/main/java/org/rumbledb/compiler/ExpressionClassificationVisitor.java +++ b/src/main/java/org/rumbledb/compiler/ExpressionClassificationVisitor.java @@ -143,7 +143,10 @@ public ExpressionClassification visitCommaExpression( // Region Typing @Override - public ExpressionClassification visitTreatExpression(TreatExpression expression, ExpressionClassification argument) { + public ExpressionClassification visitTreatExpression( + TreatExpression expression, + ExpressionClassification argument + ) { ExpressionClassification result = this.visit(expression.getMainExpression(), argument); expression.setExpressionClassification(result); return result; diff --git a/src/test/java/iq/RuntimeTests.java b/src/test/java/iq/RuntimeTests.java index 4ec279975..7dbbffed8 100644 --- a/src/test/java/iq/RuntimeTests.java +++ b/src/test/java/iq/RuntimeTests.java @@ -62,28 +62,28 @@ public RuntimeTests(File testFile) { public RumbleRuntimeConfiguration getConfiguration() { return new RumbleRuntimeConfiguration( new String[] { - "--print-iterator-tree", - "yes", - "--variable:externalUnparsedString", - "unparsed string", - "--apply-updates", - "yes" } + "--print-iterator-tree", + "yes", + "--variable:externalUnparsedString", + "unparsed string", + "--apply-updates", + "yes" } ).setExternalVariableValue( - Name.createVariableInNoNamespace("externalStringItem"), - Collections.singletonList(ItemFactory.getInstance().createStringItem("this is a string")) + Name.createVariableInNoNamespace("externalStringItem"), + Collections.singletonList(ItemFactory.getInstance().createStringItem("this is a string")) + ) + .setExternalVariableValue( + Name.createVariableInNoNamespace("externalIntegerItems"), + Arrays.asList( + new Item[] { + ItemFactory.getInstance().createIntItem(1), + ItemFactory.getInstance().createIntItem(2), + ItemFactory.getInstance().createIntItem(3), + ItemFactory.getInstance().createIntItem(4), + ItemFactory.getInstance().createIntItem(5), + } ) - .setExternalVariableValue( - Name.createVariableInNoNamespace("externalIntegerItems"), - Arrays.asList( - new Item[] { - ItemFactory.getInstance().createIntItem(1), - ItemFactory.getInstance().createIntItem(2), - ItemFactory.getInstance().createIntItem(3), - ItemFactory.getInstance().createIntItem(4), - ItemFactory.getInstance().createIntItem(5), - } - ) - ); + ); } public static void readFileList(File dir) {