2016-12-22 56 views

回答

1

Firsly應該創建一個數據幀

peopleDF = spark.read.json(your/file/path/) 

之後,創建一個虛擬表或視圖

peopleDF .createOrReplaceTempView("mytable") 
queryResult= spark.sql("SELECT name FROM test) 
相關問題