Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/11014#discussion_r51524739
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/SQLImplicits.scala
---
@@ -56,13 +58,65 @@ abstract class SQLImplicits {
/** @since 1.6.0 */
implicit def newShortEncoder: Encoder[Short] = ExpressionEncoder()
- /** @since 1.6.0 */
+ /** @since 1.6.0 */
implicit def newBooleanEncoder: Encoder[Boolean] = ExpressionEncoder()
/** @since 1.6.0 */
implicit def newStringEncoder: Encoder[String] = ExpressionEncoder()
+ // Seqs
+
+ /** @since 1.6.1 */
+ implicit def newIntSeqEncoder: Encoder[Seq[Int]] = ExpressionEncoder()
+
+ /** @since 1.6.1 */
+ implicit def newLongSeqEncoder: Encoder[Seq[Long]] = ExpressionEncoder()
+
+ /** @since 1.6.1 */
+ implicit def newDoubleSeqEncoder: Encoder[Seq[Double]] =
ExpressionEncoder()
+
+ /** @since 1.6.1 */
+ implicit def newFloatSeqEncoder: Encoder[Seq[Float]] =
ExpressionEncoder()
+
+ /** @since 1.6.1 */
+ implicit def newByteSeqEncoder: Encoder[Seq[Byte]] = ExpressionEncoder()
+
+ /** @since 1.6.1 */
+ implicit def newShortSeqEncoder: Encoder[Seq[Short]] =
ExpressionEncoder()
+
+ /** @since 1.6.1 */
+ implicit def newBooleanSeqEncoder: Encoder[Seq[Boolean]] =
ExpressionEncoder()
+
+ /** @since 1.6.1 */
+ implicit def newStringSeqEncoder: Encoder[Seq[String]] =
ExpressionEncoder()
--- End diff --
Yeah, i went back and forth on that. I guess its probably useful.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]