ENCODE_SORT_KEY(Lakehouse v2)
ソート順を保持するバイナリのソートキーに値をエンコードします。複合ソートキーに便利です。
Analyze 構文
Section titled “Analyze 構文”func.encode_sort_key(get_column(table, 'col1'), get_column(table, 'col2'))Analyze の例
Section titled “Analyze の例”func.encode_sort_key(get_column(table, 'name'), get_column(table, 'age'))
┌───────────────────┐│ (binary sort key) │└───────────────────┘SQL 構文
Section titled “SQL 構文”ENCODE_SORT_KEY(<expr1>[, <expr2>, ...])SQL の例
Section titled “SQL の例”SELECT HEX(ENCODE_SORT_KEY('Alice', 30));
┌────────────────────────┐│ (hex-encoded sort key) │└────────────────────────┘