MAX_BY (Lakehouse v2)
返回与另一列最大值对应的某一列的值。
Analyze 语法
Section titled “Analyze 语法”func.max_by(get_column(table, 'name'), get_column(table, 'salary'))Analyze 示例
Section titled “Analyze 示例”func.max_by(get_column(table, 'name'), get_column(table, 'salary'))
┌───────┐│ Alice │└───────┘SQL 语法
Section titled “SQL 语法”MAX_BY(<name>, <salary>)SQL 示例
Section titled “SQL 示例”SELECT MAX_BY(name, salary) FROM employees;
┌───────┐│ Alice │└───────┘