[_META_] hint to inspect segment file metadata.
column_size
Returns the decompressed size of a column in bytes.Syntax
Parameters
column_name: The name of the column for which you want to get the decompressed size.
Return value
Returns the decompressed size of the column in bytes as a BIGINT value.column_compressed_size
Returns the compressed size of a column in bytes.Syntax
Parameters
column_name: The name of the column for which you want to get the compressed size.
Return value
Returns the compressed size of the column in bytes as a BIGINT value.Usage notes
- Both functions must be used with the
[_META_]hint to access metadata information. - The functions scan the metadata of underlying segment files using the META_SCAN operator.
- For complex data types (JSON, ARRAY, MAP, STRUCT), the functions recursively calculate the size of all sub-columns.
column_sizereturns the uncompressed column size.column_compressed_sizereturns the compressed on-disk size.