我想使用类似于Oracle SQL的Spark Python(从Cassandra中提取数据)运行以下查询:
select name, value, count(*) from table_name order by name, value
group by name....
任何示例/样本都会有所帮助,谢谢!
答案 0 :(得分:0)
使用Scala
val results = sqlContext.sql(
"select name, value, count(*) from table group by name, value"
)