Group by must be added to the hive query SQL, otherwise the column col in the selection list is invalid because it is not included in the aggregate function or group by clause.
Generally speaking, count
, round
should be regarded as aggregate functions without group by
however, hive does not consider the use of round as an aggregate function. The fields used should be added to group by, and the fields used in round should be added to group by
otherwise, an error is reported invalid column reference
Read More:
- Word column after the text evenly distributed in the left and right two columns, rather than fill in the left column and then fill in the right column, how to do?
- The usage of several integer functions in MATLAB (fix, floor, ceil, round)
- In the SQL query statement, add the column that does not exist in the table and set the fixed value of the column
- The difference of four kinds of integer function (fix floor ceil round) in MATLAB
- SQL error: 17006, sqlstate: 99999 invalid column name
- Cause: java.sql.SQLException: invalid column type: 1111 Error [How to Fix]
- “Hive metadata problem” hive.metastore.HiveMetaException : Failed to get schema version.
- Group by operator of hive execution plan
- Hive SQL syntax error and corresponding solutions
- After the go pointer is declared and assigned, a panic: runtime error: invalid memory address or nil pointer reference appears
- Handling of expression not in group by key [value] reported by hive on October 12, 2020
- MySQL error: column ‘ID’ in field list is ambiguous
- Go start error: Panic: runtime error: invalid memory address or nil pointer reference
- An error is reported when the file in hive parquet format is written in the Flink connection
- The problem of error reporting in Ranger connection hive is solved
- Codeworks educational round 96 [reverse pair] E. string reverse
- 1072 – Key column ‘xxx_id’ doesn’t exist in table
- New fields in hive table and modification of field comments
- C / C + + rounding function: round function
- Cause: java.sql.BatchUpdateException: Unknown column ‘xxx‘ in ‘field list‘