File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
integ-test/src/test/java/org/opensearch/sql/correctness/runner/resultset Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -202,9 +202,11 @@ public boolean equals(final Object o) {
202202 // H2 calculates the value before setting column name
203203 // for example, for query "select 1 + 1" it returns a column named "2" instead of "1 + 1"
204204 boolean skipColumnNameCheck = databaseName .equalsIgnoreCase ("h2" ) || other .databaseName .equalsIgnoreCase ("h2" );
205- if ((!skipColumnNameCheck && !schema .equals (other .schema ) || (skipColumnNameCheck &&
206- !schema .stream ().map (Type ::getType ).collect (Collectors .toList ())
207- .equals (other .schema .stream ().map (Type ::getType ).collect (Collectors .toList ()))))) {
205+ if (!skipColumnNameCheck && !schema .equals (other .schema )) {
206+ return false ;
207+ }
208+ if (skipColumnNameCheck && !schema .stream ().map (Type ::getType ).collect (Collectors .toList ())
209+ .equals (other .schema .stream ().map (Type ::getType ).collect (Collectors .toList ()))) {
208210 return false ;
209211 }
210212 return dataRows .equals (other .dataRows );
You can’t perform that action at this time.
0 commit comments