📅  最后修改于: 2022-03-11 14:45:23.425000             🧑  作者: Mango
# Read JSON files with automatic schema inference
df = spark.read.json("logs.json")
df.where("age > 21").select("name.first").show()