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