Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
zhli1142015 committed Dec 5, 2023
1 parent 795fc23 commit a655831
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ class GlutenFallbackSuite extends GlutenSQLTestsTrait {
sql("SELECT * FROM t").collect()
}
}
assert(
testAppender.loggingEvents.exists(
_.getMessage.getFormattedMessage.contains(
"Validation failed for plan: Scan parquet default.t, " +
"due to: columnar FileScan is not enabled in FileSourceScanExec")))
val msgRegex = """Validation failed for plan: Scan parquet default\.t\[QueryId=[0-9]+\],""" +
""" due to: columnar FileScan is not enabled in FileSourceScanExec\."""
assert(testAppender.loggingEvents.exists(_.getMessage.getFormattedMessage.matches(msgRegex)))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ class GlutenFallbackSuite extends GlutenSQLTestsTrait {
sql("SELECT * FROM t").collect()
}
}
assert(
testAppender.loggingEvents.exists(
_.getMessage.getFormattedMessage.contains(
"Validation failed for plan: Scan parquet default.t, " +
"due to: columnar FileScan is not enabled in FileSourceScanExec")))
val msgRegex = """Validation failed for plan: Scan parquet default\.t\[QueryId=[0-9]+\],""" +
""" due to: columnar FileScan is not enabled in FileSourceScanExec\."""
assert(testAppender.loggingEvents.exists(_.getMessage.getFormattedMessage.matches(msgRegex)))
}
}

Expand Down

0 comments on commit a655831

Please sign in to comment.