[MCOL-1508] compression data size and varchar Created: 2018-06-26  Updated: 2022-11-05  Resolved: 2022-11-05

Status: Closed
Project: MariaDB ColumnStore
Component/s: N/A
Affects Version/s: 1.1.5
Fix Version/s: Icebox

Type: Bug Priority: Minor
Reporter: patrice Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None


 Description   

Hi,

I am looking into compression ratio calculations and varchar storage. I cannot understand the logic of the varchar data_size. the following query should give results where the the data_size is 0 for varchars, but that is not consistent for all the column and tables. Some varchar columns (greater than 8 byte) will have a non zero data_size. However the compressed_Data_size is definitely not zero.

select cc.TABLE_SCHEMA,cc.TABLE_NAME,cc.COLUMN_NAME,cc.COLUMN_LENGTH,sum(data_size) ct,cc.OBJECT_ID,cc.DICTIONARY_OBJECT_ID,cc.DATA_TYPE,cc.COMPRESSION_TYPE
from information_schema.columnstore_extents ce
left join information_schema.columnstore_columns cc on ce.object_id = cc.DICTIONARY_OBJECT_ID – (or cc.object_id)
where compression_type='Snappy' and DATA_SIZE =0 group by cc.TABLE_SCHEMA,cc.TABLE_NAME,cc.COLUMN_NAME having ct=0;

Any light on this ?



 Comments   
Comment by Todd Stoffel (Inactive) [ 2022-11-05 ]

Item is out of date. Closing due to inactivity. If you feel this was done in error please open a new ticket.

Generated at Thu Feb 08 02:29:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.