Spark: Variant Datatype is not supported
问题 While extracting the data from SQL Server of variant data type in Pyspark. i am getting a SQLServerException : "Variant datatype is not supported" Please advice for any workaround. 回答1: Converted the column datatype into varchar while fetching and thing worked SELECT CONVERT(varchar,Code,20) into Code from DBTable 来源: https://stackoverflow.com/questions/40786605/spark-variant-datatype-is-not-supported