【发布时间】:2020-11-20 16:08:53
【问题描述】:
我正在尝试使用 RAND() 函数并设置一个种子,以在https://cloud.google.com/dataprep/docs/html/RAND-Function_57344757#int_value 之后的输出中生成一组一致的 10 个随机值
通过这个查询我得到了错误:No matching signature for function RAND for argument types: INT64.:
rand_val as (
select value
from test
where RAND(3) < 10/ (select count(value) from test))
select * from rand_val
我在这里做错了什么?
【问题讨论】:
标签: sql random google-bigquery random-seed