Jiahong 的个人博客

凡事预则立,不预则废


  • Home

  • Tags

  • Archives

  • Navigation

  • Search

Spark——DataFrame读取Array类型


spark 从 DataFrame 中读取 Array 类型的列

  • 代码示例
    1
    2
    3
    4
    dataFrame.rdd.map(row => {
    val vectorCol = row.getAs[Seq[Double]]("VectorCol")
    vectorCol.toArray
    }).collect().foreach(println)
# Spark
Spark——SQL-Join详解
Shell——进程查找
  • Table of Contents
  • Overview
Joe Zhou

Joe Zhou

Stay Hungry. Stay Foolish.

608 posts
49 tags
GitHub E-Mail
  1. 1. spark 从 DataFrame 中读取 Array 类型的列
© 2026 Joe Zhou
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4