-
Notifications
You must be signed in to change notification settings - Fork 254
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Describe the bug
Repro test case for CometExpressionSuite:
test("like with custom escape") {
val names = Seq("", "a_b", "d_e_f")
withTempDir { dir =>
val filename = "/tmp/percent.parquet"
names.toDF("a").write.mode(SaveMode.Overwrite).parquet(filename)
spark.read.parquet(filename).coalesce(1).createOrReplaceTempView("t")
val query = sql("select a from t where a like '%$_%' escape '$'")
checkSparkAnswerAndOperator(query)
}
}Output:
== Results ==
!== Correct Answer - 2 == == Spark Answer - 0 ==
!struct<a:string> struct<>
![a_b]
![d_e_f]
Steps to reproduce
No response
Expected behavior
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers