Skip to content

Commit

Permalink
fixed missing transaction handling in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
datomo committed Dec 3, 2024
1 parent e54d351 commit 67650ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ jobs:
timeout-minutes: 60
run: ./gradlew assemblePlugins -PwithoutpullingUi=true
- name: Execute tests
timeout-minutes: 45
timeout-minutes: 30
run: ./gradlew check -PwithoutpullingUi=true
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ private void attachPolyAlgPlan( AlgNode alg ) {
queryAnalyzer.registerInformation( infoPolyAlg );

} catch ( Exception e ) {
e.printStackTrace();
throw new GenericRuntimeException( e.getMessage(), e );
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,19 @@ private static void testQueryRoundTrip( String query, QueryLanguage ql, String n
assertNotNull( allocation );
assertNotNull( physical ); // Physical is not yet tested further since it is only partially implemented

try {
transaction.commit(); // execute PolyAlg creates new transaction
} catch ( TransactionException e ) {
throw new RuntimeException( e );
}

// Check that parsing and executing again returns the same result
String resultFromLogical = executePolyAlg( logical, PlanType.LOGICAL, ql );
assertEquals( result, resultFromLogical, "Result from query does not match result when executing the logical plan." );
String resultFromAllocation = executePolyAlg( allocation, PlanType.ALLOCATION, ql );
assertEquals( result, resultFromAllocation, "Result from query does not match result when executing the allocation plan." );

try {
transaction.commit();
} catch ( TransactionException e ) {
throw new RuntimeException( e );
}

}


Expand Down

0 comments on commit 67650ef

Please sign in to comment.