Method records in hive that disagree with the same name as a function in MySQL

Source: Internet
Author: User

The Max function is an aggregate function in hive, so the return value is double and must be followed by the group by, which differs greatly from MySQL

Built-in Aggregate Functions (UDAF)

DOUBLE
Max (COL)
Returns the maximum value of the column in the group.

In MySQL

Returns the maximum value of expr. MAX () may take a string argument; Inch
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 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.

Method records in hive that disagree with the same name as a function in MySQL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.