Terry's blog

Focus on bigdata and cloud.

博客园 首页 新随笔 联系 订阅 管理

2018年6月25日 #

摘要: 说明:withColumn用于在原有DF新增一列 1. 初始化sqlContext val sqlContext = new org.apache.spark.sql.SQLContext(sc) 2.导入sqlContext隐式转换 import sqlContext.implicits._ 3. 阅读全文
posted @ 2018-06-25 19:17 王晓成 阅读(2973) 评论(0) 推荐(0) 编辑