Skip to content

Commit 3a13aa7

Browse files
committed
test: route rlike non-scalar-pattern fallback test through engine=rust
The per-expression spark.comet.expression.regexp.allowIncompatible flag is no longer consulted by the regex family. Switch to engine=rust so the RLike serde reaches convertViaNativeRegex and emits the 'Only scalar regexp patterns are supported' fallback message the test asserts on.
1 parent bec171e commit 3a13aa7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
967967
withTable(table) {
968968
sql(s"create table $table(id int, name varchar(20)) using parquet")
969969
sql(s"insert into $table values(1,'James Smith')")
970-
withSQLConf(CometConf.getExprAllowIncompatConfigKey("regexp") -> "true") {
970+
withSQLConf(CometConf.COMET_REGEXP_ENGINE.key -> CometConf.REGEXP_ENGINE_RUST) {
971971
val query2 = sql(s"select id from $table where name rlike name")
972972
val (_, cometPlan) = checkSparkAnswer(query2)
973973
val explain = new ExtendedExplainInfo().generateExtendedInfo(cometPlan)

0 commit comments

Comments
 (0)