Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/7203#discussion_r33842222
--- 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 --
I think the convention is usually
```scala
a :: b :: c :: Nil
```
rather than
```scala
Nil :+ a :+ ...
```
Do you mind updating it?
---
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]