Skip to content

Commit 11b8e29

Browse files
committed
only check spark sql
Signed-off-by: Lantao Jin <ltjin@amazon.com>
1 parent b206a31 commit 11b8e29

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ppl/src/test/java/org/opensearch/sql/ppl/calcite/CalcitePPLAbstractTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,14 @@ private Node plan(PPLSyntaxParser parser, String query) {
9696

9797
/** Verify the logical plan of the given RelNode */
9898
public void verifyLogical(RelNode rel, String expectedLogical) {
99-
String normalized = expectedLogical.replace("\n", System.lineSeparator());
100-
assertThat(rel, hasTree(normalized));
99+
assertThat(rel, hasTree(expectedLogical));
101100
}
102101

103102
/** Execute and verify the result of the given RelNode */
104103
public void verifyResult(RelNode rel, String expectedResult) {
105-
String normalized = expectedResult.replace("\n", System.lineSeparator());
106104
try (PreparedStatement preparedStatement = RelRunners.run(rel)) {
107105
String s = CalciteAssert.toString(preparedStatement.executeQuery());
108-
assertThat(s, is(normalized));
106+
assertThat(s, is(expectedResult));
109107
} catch (SQLException e) {
110108
throw new RuntimeException(e);
111109
}

0 commit comments

Comments
 (0)