Tuesday, 11 October 2022

Hive: rand(): Return random number

Signature

rand(seed)
hive> SELECT rand(1000);
OK
_c0
0.7101849056320707
Time taken: 0.04 seconds, Fetched: 1 row(s)
hive> ;
hive> SELECT rand();
OK
_c0
0.9845734950797725
Time taken: 0.039 seconds, Fetched: 1 row(s)

 


Previous                                                    Next                                                    Home

No comments:

Post a Comment