【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】
【 使用版本 】社区版本4.0.0
【问题描述】
创建表时使用了ROW_FORMAT = COMPRESSED COMPRESSION = 'zstd_1.0’这种方式,然后插入10000条数据后,analyze table xxx compute statistics for all columns size auto;之后,查看表大小,与普通表插入相同数据量之后的大小一样,压缩不生效?查看表大小使用下面的查询语句
SELECT
table_schema AS ‘数据库’,
table_name AS ‘表名’,
table_rows AS ‘记录数’,
TRUNCATE (data_length /1024/1024/1024, 2) AS ‘数据容量(GB)’,
TRUNCATE (index_length /1024/1024/1024, 2) AS ‘索引容量(GB)’
FROM
information_schema.tables
where table_schema = ‘test’
ORDER BY
data_length DESC,
index_length DESC;
【复现路径】问题出现前后相关操作
【问题现象及影响】
【附件】