A),get_json_object()
B),from_json()
C),to_json()
D),explode()
E),selectExpr()
二,准备阶段
首先,创建一个没有任何嵌套的JSon...()
将列转化为一个JSON对象的另一种方式是使用selectExpr()功能函数。...val stringsDF = eventsDS.selectExpr("CAST(id AS INT)", "CAST(device AS STRING)")
stringsDF.show
?...SelectExpr()方法的另一个用法,就是使用表达式作为参数,将它们转化为指定的列。...八,总结
本文主要讲 get_json_object(), from_json(), to_json(), selectExpr(), and explode()基本介绍使用。