AngersZhuuuu commented on a change in pull request #31979:
URL: https://github.com/apache/spark/pull/31979#discussion_r602807702



##########
File path: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationSuite.scala
##########
@@ -528,4 +529,30 @@ class HiveScriptTransformationSuite extends 
BaseScriptTransformationSuite with T
     checkAnswer(query2, identity, Row("\\N,\\N,\\N") :: Nil)
 
   }
+
+  test("SPARK-34879: Hive inspect support DayTimeIntervalType and 
YearMonthIntervalType") {
+    assume(TestUtils.testCommandAvailable("/bin/bash"))
+    withTempView("v") {
+      val df = Seq(
+        (Duration.ofDays(10), Period.ofMonths(10)),
+        (Duration.ofDays(10), Period.ofMonths(10))
+      ).toDF("a", "b").select('a, 'b)
+      df.createTempView("v")
+
+      // Hive serde support ArrayType/MapType/StructType as input and output 
data type

Review comment:
       > support -> supports
   
   Done

##########
File path: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationSuite.scala
##########
@@ -528,4 +529,30 @@ class HiveScriptTransformationSuite extends 
BaseScriptTransformationSuite with T
     checkAnswer(query2, identity, Row("\\N,\\N,\\N") :: Nil)
 
   }
+
+  test("SPARK-34879: Hive inspect support DayTimeIntervalType and 
YearMonthIntervalType") {

Review comment:
       > support -> supports
   
   Done




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to