Skip to content

Commit

Permalink
Omit printing routed query plan
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-weber committed Apr 3, 2024
1 parent a8c7bde commit b8a0c87
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions core/src/main/java/org/polypheny/db/plan/AlgOptUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -1364,13 +1364,15 @@ public static void registerAbstractAlgs( AlgPlanner planner ) {
*/
public static String dumpPlan( String header, AlgNode alg, ExplainFormat format, ExplainLevel detailLevel ) {
//TODO: Delete lines for testing PolyAlg serialization
StringBuilder sb = new StringBuilder();
alg.buildPolyAlgebra( sb, "" );
System.out.println( "===== " + header + " =====" );
System.out.println( sb );
System.out.print( "----> " );
PolyAlgParser.parse( sb.toString() );
System.out.println();
if ( !header.startsWith( "Routed" ) ) {
StringBuilder sb = new StringBuilder();
alg.buildPolyAlgebra( sb, "" );
System.out.println( "===== " + header + " =====" );
System.out.println( sb );
System.out.print( "----> " );
PolyAlgParser.parse( sb.toString() );
System.out.println();
}

StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter( sw );
Expand Down

0 comments on commit b8a0c87

Please sign in to comment.