Sunday, 18 September 2022

Hive: log: return logarithm of a number

Signature

log(double base, double n)

hive> SELECT 1000, log(1000, 10);
OK
_c0	_c1
1000	0.33333333333333337
Time taken: 0.047 seconds, Fetched: 1 row(s)
hive> ;
hive> SELECT 1000, log(1000, 100);
OK
_c0	_c1
1000	0.6666666666666667
Time taken: 0.04 seconds, Fetched: 1 row(s)

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment