title: Spark Scala UDF Parameters limitation of 10
body: <p>I need to create a Spark UDF of having 11 arguments . Is there any way to achive it ?<br>
  I know we can create an UDF having upto 10 arguments</p>
  
  <p>Below is the code for 10 arguments . It works</p>
  
  <pre><code>val testFunc1 = (one: String, two: String, three: String, four: String,
                   five: String, six: String, seven: String, eight: String, nine: String, ten: String) =&gt; {
      if (isEmpty(four)) false
      else four match {
          case "RDIS" =&gt; three == "ST"
          case "TTSC" =&gt; nine == "UT" &amp;&amp; eight == "RR"
          case _ =&gt; false
      }
  }
  import org.apache.spark.sql.functions.udf    
  udf(testFunc1)
  </code></pre>
  
  <p>Below is the code for 11 arguments . Facing "unspecified value parameters:dataType" Issue</p>
  
  <pre><code>val testFunc2 = (one: String, two: String, three: String, four: String,
                   five: String, six: String, seven: String, eight: String, nine: String, ten: String, ELEVEN: String) =&gt; {
    if (isEmpty(four)) false
    else four match {
      case "RDIS" =&gt; three == "ST"
      case "TTSC" =&gt; nine == "UT" &amp;&amp; eight == "RR" &amp;&amp; ELEVEN == "OR"
      case _ =&gt; false
    }
  }
  import org.apache.spark.sql.functions.udf    
  udf(testFunc2) // compilation error
  </code></pre>