diff options
author | Reynold Xin <rxin@databricks.com> | 2015-12-29 16:58:23 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-12-29 16:58:23 -0800 |
commit | 270a659584b6c1c304a9f9a331c56287672e00b0 (patch) | |
tree | f201c1f77f6c272f16eca4539edf2660284104c9 /sql/hive/compatibility/src/test | |
parent | be86268eb54e3fa0a9ce7a07359b3e67731ed8b5 (diff) | |
download | spark-270a659584b6c1c304a9f9a331c56287672e00b0.tar.gz spark-270a659584b6c1c304a9f9a331c56287672e00b0.tar.bz2 spark-270a659584b6c1c304a9f9a331c56287672e00b0.zip |
[SPARK-12549][SQL] Take Option[Seq[DataType]] in UDF input type specification.
In Spark we allow UDFs to declare its expected input types in order to apply type coercion. The expected input type parameter takes a Seq[DataType] and uses Nil when no type coercion is applied. It makes more sense to take Option[Seq[DataType]] instead, so we can differentiate a no-arg function vs function with no expected input type specified.
Author: Reynold Xin <rxin@databricks.com>
Closes #10504 from rxin/SPARK-12549.
Diffstat (limited to 'sql/hive/compatibility/src/test')
0 files changed, 0 insertions, 0 deletions