Skip to content

Commit 89fe3dc

Browse files
committed
feat: support literal for ARRAY top level
1 parent 139dfbc commit 89fe3dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spark/src/test/scala/org/apache/comet/exec/CometNativeReaderSuite.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,4 +556,12 @@ class CometNativeReaderSuite extends CometTestBase with AdaptiveSparkPlanHelper
556556
|""".stripMargin,
557557
"select array(cast('a' as binary), cast('bc' as binary), cast('def' as binary), null) from tbl")
558558
}
559+
560+
test("native reader - array equality") {
561+
testSingleLineQuery(
562+
"""
563+
| select array(1) a union all select array(2)
564+
|""".stripMargin,
565+
"select * from tbl where a = array(1L)")
566+
}
559567
}

0 commit comments

Comments
 (0)