标签:reg double gem nbsp function UI 记录 values his
max 函数 在hive中max函数是一个聚合函数,所以,而且返回值是double ,而且后面必须跟group by ,这个和mysql差异很大
DOUBLE
max(col)
Returns the maximum value of the column in the group.
mysql 中
Returns the maximum value of expr. MAX() may take a string argument; in
such cases, it returns the maximum string value. See
http://dev.mysql.com/doc/refman/5.1/en/mysql-indexes.html. The DISTINCT
keyword can be used to find the maximum of the distinct values of expr,
however, this produces the same result as omitting DISTINCT.
MAX() returns NULL if there were no matching rows.
标签:reg double gem nbsp function UI 记录 values his
原文地址:http://www.cnblogs.com/rocky-AGE-24/p/7291358.html