Spark SQL referencing attributes of UDT
You get this errors because schema defined by sqlType is never exposed and is not intended to be accessed directly. It simply provides a way to express a complex data types using native Spark SQL types. You can access individual attributes using UDFs but first lets show that the internal structure is indeed not exposed: … Read more