我按幾列分組,正在從這些列中得到WrappedArray,正如您在架構中所見。我如何擺脫它們,以便我可以繼續下一步並執行orderBy? val sqlDF = spark.sql("SELECT * FROM
parquet.`parquet/20171009121227/rels/*.parquet`")
得到一個數據框: val final_df = groupedBy_DF.
我想以編程方式給出一定數量的字段,並且對於某些字段,選擇一個列並將該字段傳遞給另一個函數,該函數將返回一個字符串case類,字符串。到目前爲止,我有 val myList = Seq(("a", "b", "c", "d"), ("aa", "bb", "cc","dd"))
val df = myList.toDF("col1","col2","col3","col4")
val fie