Spark sql row_number or sequence number?

前端 未结 2 395
臣服心动
臣服心动 2021-01-29 15:43

random number generator SparkSQL ?

For example:

  • Netezza: sequence number

  • mysql: sequence number

Thanks.

相关标签:
2条回答
  • 2021-01-29 16:00

    Sequence in spark sql is in spark 1.6 its select monotonically_increasing_id() from table , spark 1.6 is due to get released

    0 讨论(0)
  • 2021-01-29 16:09

    Spark Sql already have random functions there is one blog.

    Or for number of rows spark sql also have row_number() function.

    0 讨论(0)
提交回复
热议问题