Hive常用函数 - abs
官方解释
abs(x) - returns the absolute value of x
个人理解
就是返回函数括号内数字的绝对值。
想要获取该数的绝对值的时候就用这个函数没错
使用示例
select abs(-1);
> 1
官方示例
abs(x) - returns the absolute value of
微信扫一扫
abs(x) - returns the absolute value of x
就是返回函数括号内数字的绝对值。
想要获取该数的绝对值的时候就用这个函数没错
select abs(-1);
> 1
abs(x) - returns the absolute value of
相关推荐