cloud-fan commented on a change in pull request #28197: [SPARK-31431][SQL] Add 
CalendarInterval encoder support
URL: https://github.com/apache/spark/pull/28197#discussion_r409602172
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/SQLImplicits.scala
 ##########
 @@ -237,6 +238,8 @@ abstract class SQLImplicits extends 
LowPrioritySQLImplicits {
    */
   implicit def symbolToColumn(s: Symbol): ColumnName = new ColumnName(s.name)
 
+  /** @since 3.1.0 */
+  implicit def newIntervalEncoder: Encoder[CalendarInterval] = 
Encoders.INTERVAL
 
 Review comment:
   nit: can we move it closer to where we define other encoders?

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


With regards,
Apache Git Services

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

Reply via email to