spark-instrumented-optimizer/sql/core/src
Wenchen Fan 2bfed1a0c5 [SPARK-15658][SQL] UDT serializer should declare its data type as udt instead of udt.sqlType
## What changes were proposed in this pull request?

When we build serializer for UDT object, we should declare its data type as udt instead of udt.sqlType, or if we deserialize it again, we lose the information that it's a udt object and throw analysis exception.

## How was this patch tested?

new test in `UserDefiendTypeSuite`

Author: Wenchen Fan <wenchen@databricks.com>

Closes #13402 from cloud-fan/udt.
2016-05-31 11:00:38 -07:00
..
main [SPARK-15638][SQL] Audit Dataset, SparkSession, and SQLContext 2016-05-30 22:47:58 -07:00
test [SPARK-15658][SQL] UDT serializer should declare its data type as udt instead of udt.sqlType 2016-05-31 11:00:38 -07:00