SparkSQL查询 两种查询方式: 代码: import org.apache.spark.rdd.RDD import org.apache.spark.sql.types.{ IntegerType, StringType, StructField, StructType} import org.apache.spark.sql.{ DataFrame, Row, SparkSession} object Demo_SparkSession { //花式查询