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