yew1eb commented on code in PR #1681:
URL: https://github.com/apache/auron/pull/1681#discussion_r2589255383
##########
spark-extension-shims-spark/src/test/scala/org.apache.auron/AuronQuerySuite.scala:
##########
@@ -312,39 +312,56 @@ class AuronQuerySuite extends AuronQueryTest with
BaseAuronSQLSuite with AuronSQ
}
test("initcap basic") {
- Seq(
- ("select initcap('spark sql')", Row("Spark Sql")),
- ("select initcap('SPARK')", Row("Spark")),
- ("select initcap('sPaRk')", Row("Spark")),
- ("select initcap('')", Row("")),
- ("select initcap(null)", Row(null))).foreach { case (q, expected) =>
- checkAnswer(sql(q), Seq(expected))
+ withTable("initcap_basic_tbl") {
+ sql(s"CREATE TABLE initcap_basic_tbl(id INT, txt STRING) USING parquet")
Review Comment:
Great suggestion. We'll fix this in a follow-up PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]