Spark DataFrame 添加ID列 import org.apache.spark.sql.functions._df.withColumn("id", monotonically_increasing_id) Other 2023-12-16 222 点赞 3 评论 336 浏览