Skip to content

Commit c75ecfc

Browse files
committed
chore: extract comparison tool from fuzzer
1 parent 95955be commit c75ecfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fuzz-testing/src/main/scala/org/apache/comet/fuzz/QueryRunner.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ object QueryComparison {
156156
val l = sparkRows(i)
157157
val r = cometRows(i)
158158
// Check the schema is equal for first row only
159-
if (i == 0)
159+
if (i == 0) {
160160
assert(l.schema == r.schema)
161+
}
161162

162163
assert(l.length == r.length)
163164
for (j <- 0 until l.length) {

0 commit comments

Comments
 (0)