【Spark&Hive】获取表或DataFrame所有的字段 在spark-shell中: spark.read.parquet("路径").schema.toList.map(_.name).foreach(println)