【 使用版本 】
3.2.4
【问题描述】
列统计信息中的min_value,max_value怎么解析成可读的值
select /*+LEADING(((c b) a) t) use_nl(b) use_nl(a) use_nl(t) */
b.table_name,
t.partition_id,
a.column_name,
num_distinct,
t.num_null,
t.min_value,
t.max_value
from __all_virtual_column_statistic t,
__all_virtual_column a,
__all_virtual_table b,
__all_virtual_database c
where t.tenant_id = a.tenant_id
and t.table_id = a.table_id
and t.column_id = a.column_id
and a.tenant_id = b.tenant_id
and a.table_id = b.table_id
and b.tenant_id = c.tenant_id
and b.database_id = c.database_id
and c.tenant_id = 1001
and c.database_name = 'SYS'
and b.table_name = 'TESTTAB1';
+------------+--------------+----------------+--------------+----------+------------------------------+------------------------------+
| table_name | partition_id | column_name | num_distinct | num_null | min_value | max_value |
+------------+--------------+----------------+--------------+----------+------------------------------+------------------------------+
| TESTTAB1 | 0 | __pk_increment | 99015 | 0 | 0A053FFF01 | 0A053FFFA08D06 |
| TESTTAB1 | 1 | __pk_increment | 0 | 0 | 19070000FDFFFFFFFFFFFFFFFF01 | 19070000FEFFFFFFFFFFFFFFFF01 |
| TESTTAB1 | 2 | __pk_increment | 0 | 0 | 19070000FDFFFFFFFFFFFFFFFF01 | 19070000FEFFFFFFFFFFFFFFFF01 |
| TESTTAB1 | 0 | REGION | 1 | 0 | 0F053FFFC00000016E000000 | 0F053FFFC00000016E000000 |
| TESTTAB1 | 1 | REGION | 0 | 0 | 19070000FDFFFFFFFFFFFFFFFF01 | 19070000FEFFFFFFFFFFFFFFFF01 |
| TESTTAB1 | 2 | REGION | 0 | 0 | 19070000FDFFFFFFFFFFFFFFFF01 | 19070000FEFFFFFFFFFFFFFFFF01 |
| TESTTAB1 | 0 | N | 99890 | 0 | 0F053FFFC000000101000000 | 0F053FFFC0000001A0860100 |
| TESTTAB1 | 1 | N | 0 | 0 | 19070000FDFFFFFFFFFFFFFFFF01 | 19070000FEFFFFFFFFFFFFFFFF01 |
| TESTTAB1 | 2 | N | 0 | 0 | 19070000FDFFFFFFFFFFFFFFFF01 | 19070000FEFFFFFFFFFFFFFFFF01 |
+------------+--------------+----------------+--------------+----------+------------------------------+------------------------------+
9 rows in set (0.166 sec)