WANG LH , Research & Development

Spark资料整理

2021.05.31 22:05

官方文档
http://spark.apache.org/docs/latest/quick-start.html
API Doc
http://spark.apache.org/docs/latest/api/scala/index.html
RDD Programming Guide
http://spark.apache.org/docs/latest/rdd-programming-guide.html
Spark SQL Guide
http://spark.apache.org/docs/latest/sql-programming-guide.html

列分割成行

SELECT brand, sum(`_c4`) as total_count FROM tmp.search_filter_order LATERAL VIEW explode(split(filter_brands, ',')) num as brand WHERE filter_brands != '' GROUP BY brand