Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-10671

Calling a UDF with insufficient number of input arguments should throw an analysis error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: SQL
    • Labels:
      None
    • Target Version/s:

      Description

      import org.apache.spark.sql.functions._
      Seq((1,2)).toDF("a", "b").select(callUDF("percentile", $"a"))
      

      This should throws an Analysis Exception.

        Attachments

          Activity

            People

            • Assignee:
              cloud_fan Wenchen Fan
              Reporter:
              yhuai Yin Huai
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: