Skip to content

Commit

Permalink
Merge pull request #1126 from RumbleDB/SerializerInline
Browse files Browse the repository at this point in the history
Fix output.
  • Loading branch information
ghislainfourny authored Nov 2, 2021
2 parents 6d585c3 + e81f166 commit aaae4ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ public static Dataset<Row> tryNativeQuery(
if (nativeQuery == NativeClauseContext.NoNativeQuery) {
return null;
}
System.out.println(
System.err.println(
"[INFO] Rumble was able to optimize a for clause to a native SQL query."
);
String selectSQL = FlworDataFrameUtils.getSQLProjection(allColumns, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ private Dataset<Row> tryNativeQuery(
selectString.append(".sequence`");
}
}
System.out.println("[INFO] Rumble was able to optimize a let clause to a native SQL query.");
System.err.println("[INFO] Rumble was able to optimize a let clause to a native SQL query.");
return dataFrame.sparkSession()
.sql(
String.format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,6 @@ public static Dataset<Row> bindLetVariableInDataFrame(
Map<Name, DynamicContext.VariableDependency> outputTupleVariableDependencies,
boolean hash
) {
System.err.println("bindLetVariableInDataFrame");
dataFrame.show();
StructType inputSchema = dataFrame.schema();
// inputSchema.printTreeString();

Expand Down Expand Up @@ -765,7 +763,7 @@ public static Dataset<Row> tryNativeQuery(
if (nativeQuery == NativeClauseContext.NoNativeQuery) {
return null;
}
System.out.println(
System.err.println(
"[INFO] Rumble was able to optimize a let clause to a native SQL query."
);
String selectSQL = FlworDataFrameUtils.getSQLProjection(allColumns, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ public static Dataset<Row> tryNativeQuery(
}
}

System.out.println("[INFO] Rumble was able to optimize an order-by clause to a native SQL query.");
System.err.println("[INFO] Rumble was able to optimize an order-by clause to a native SQL query.");
String selectSQL = FlworDataFrameUtils.getSQLProjection(allColumns, false);
dataFrame.createOrReplaceTempView("input");
return dataFrame.sparkSession()
Expand Down

0 comments on commit aaae4ee

Please sign in to comment.