spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piaozhexiu <...@git.apache.org>
Subject [GitHub] spark pull request: [SPARK-8572] [SQL] Type coercion for ScalaUDFs
Date Fri, 03 Jul 2015 06:46:48 GMT
Github user piaozhexiu commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7203#discussion_r33843354
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/UDFRegistration.scala ---
    @@ -87,6 +87,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends
Logging {
         (0 to 22).map { x =>
           val types = (1 to x).foldRight("RT")((i, s) => {s"A$i, $s"})
           val typeTags = (1 to x).map(i => s"A${i}: TypeTag").foldLeft("RT: TypeTag")(_
+ ", " + _)
    +      val inputTypes = (1 to x).foldLeft("Nil")((s, i) => {s"$s :+ ScalaReflection.schemaFor[A$i].dataType"})
    --- End diff --
    
    Fixed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Mime
View raw message