Skip to content

Commit fec0066

Browse files
committed
address comments
1 parent 1c3899f commit fec0066

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLViewSuite.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,8 @@ class SQLViewSuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
492492
val permanentFuncName = "myUpper"
493493
val permanentFuncClass =
494494
classOf[org.apache.hadoop.hive.ql.udf.generic.GenericUDFUpper].getCanonicalName
495-
val builtInFuncName = "abs"
495+
val builtInFuncNameInLowerCase = "abs"
496+
val builtInFuncNameInMixedCase = "aBs"
496497
val hiveFuncName = "histogram_numeric"
497498

498499
withUserDefinedFunction(permanentFuncName -> false) {
@@ -506,7 +507,8 @@ class SQLViewSuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
506507
|CREATE $viewMode view1
507508
|AS SELECT
508509
|$permanentFuncName(str),
509-
|$builtInFuncName(id),
510+
|$builtInFuncNameInLowerCase(id),
511+
|$builtInFuncNameInMixedCase(id) as aBs,
510512
|$hiveFuncName(id, 5) over()
511513
|FROM tab1
512514
""".stripMargin)

0 commit comments

Comments
 (0)