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>)SELECT MAX_BY(name, salary) FROM employees;
┌───────┐│ Alice │└───────┘