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