打开getas的源码,找到下面一段
/**
* Returns the value at position i of array type as a Scala Seq.
*
* @throws ClassCastException when data type does not match.
*/
def getSeq[T](i: Int): Seq[T] = getAs[Seq[T]](i)
看上去是支持Seq类型的意思。于是用udf和map把array转化成Seq,ok,能正常取出了。