COLUMN_SIZE (Lakehouse v2)
Returns the size in bytes of a column value in its serialized form.
Analyze Syntax
Section titled “Analyze Syntax”func.column_size(get_column(table, 'name'))Analyze Examples
Section titled “Analyze Examples”func.column_size(get_column(table, 'name'))
┌───┐│ 5 │└───┘SQL Syntax
Section titled “SQL Syntax”COLUMN_SIZE(<expr>)SQL Examples
Section titled “SQL Examples”SELECT name, COLUMN_SIZE(name) FROM users LIMIT 3;
┌──────���┬───────────────────┐│ name │ column_size(name) │├───────┼───────────────────┤│ Alice │ 5 ││ Bob │ 3 ││ Eve │ 3 │└───────┴───────────────────┘