Github user mgaido91 commented on a diff in the pull request:
https://github.com/apache/spark/pull/22766#discussion_r226319445
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveUDFSuite.scala
---
@@ -638,6 +638,21 @@ class HiveUDFSuite extends QueryTest with
TestHiveSingleton with SQLTestUtils {
Row(3) :: Row(3) :: Nil)
}
}
+
+ test("constant argument expecting Hive UDF") {
+ val testData = spark.range(10).toDF()
+ withTempView("inputTable") {
+ testData.createOrReplaceTempView("inputTable")
--- End diff --
nit: we can move here `spark.range(10)`
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]