MaxGekk commented on a change in pull request #32121:
URL: https://github.com/apache/spark/pull/32121#discussion_r611159655



##########
File path: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkExecuteStatementOperation.scala
##########
@@ -122,6 +124,12 @@ private[hive] class SparkExecuteStatementOperation(
           timeFormatters)
       case _: ArrayType | _: StructType | _: MapType | _: UserDefinedType[_] =>
         to += toHiveString((from.get(ordinal), dataTypes(ordinal)), false, 
timeFormatters)
+      case YearMonthIntervalType =>

Review comment:
       For example, after the PR https://github.com/apache/spark/pull/32120 is 
merged:
   ```sql
   0: jdbc:hive2://localhost:10000/default> select array(timestamp'2021-01-01 
01:02:03.000001' - date'2020-12-31');
   +----------------------------------------------------+
   | array(subtracttimestamps(TIMESTAMP '2021-01-01 01:02:03.000001', DATE 
'2020-12-31')) |
   +----------------------------------------------------+
   | [1 01:02:03.000001000]                             |
   +----------------------------------------------------+
   ```




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