1DROP DATABASE IF EXISTS mcs269_db;
2CREATE DATABASE mcs269_db;
3USE mcs269_db;
4CREATE TABLE t1
5(
6t1_INT INT,
7t1_DECIMAL DECIMAL(12,5),
8t1_TEXT TEXT,
9t1_DATE DATE,
10t1_TIME TIME
11)ENGINE=Columnstore;
12INSERT INTO t1 VALUES(103, 1234.5699, 'pqrstuvwxyz', '1997-12-12', '22:12:02');
13INSERT INTO t1 VALUES(-7299, 111.99, 'abcdefghijklm', '2001-1-1', '23:59:59');
14INSERT INTO t1 VALUES(9913, 98765.4321, repeat('q', 5), '09-12-11', '01:08:59');
15SELECT UNCOMPRESS(COMPRESS(256)) FROM t1 LIMIT 1;
16UNCOMPRESS(COMPRESS(256))
17256
18SELECT UNCOMPRESS(COMPRESS('256')) FROM t1 LIMIT 1;
19UNCOMPRESS(COMPRESS('256'))
20256
21SELECT UNCOMPRESS(COMPRESS('a')) FROM t1 LIMIT 1;
22UNCOMPRESS(COMPRESS('a'))
23a
24SELECT UNCOMPRESS(COMPRESS('ab')) FROM t1 LIMIT 1;
25UNCOMPRESS(COMPRESS('ab'))
26ab
27SELECT UNCOMPRESS(COMPRESS('1')) FROM t1 LIMIT 1;
28UNCOMPRESS(COMPRESS('1'))
291
30SELECT UNCOMPRESS(COMPRESS('pqrstuvw')) FROM t1 LIMIT 1;
31UNCOMPRESS(COMPRESS('pqrstuvw'))
32pqrstuvw
33SELECT UNCOMPRESS(COMPRESS('mariadb!@#$')) FROM t1 LIMIT 1;
34UNCOMPRESS(COMPRESS('mariadb!@#$'))
35mariadb!@#$
36SELECT UNCOMPRESS(COMPRESS('!@')) FROM t1 LIMIT 1;
37UNCOMPRESS(COMPRESS('!@'))
38!@
39SELECT t1_INT, UNCOMPRESS(COMPRESS(t1_INT)) FROM t1 ORDER BY 1;
40ERROR 42000: The storage engine for the table doesn't support IDB-1001: Function 'uncompress' isn't supported.
41SELECT t1_DECIMAL, UNCOMPRESS(COMPRESS(t1_DECIMAL)) FROM t1 ORDER BY 1;
42ERROR 42000: The storage engine for the table doesn't support IDB-1001: Function 'uncompress' isn't supported.
43SELECT t1_TEXT, UNCOMPRESS(COMPRESS(t1_TEXT)) FROM t1 ORDER BY 1;
44ERROR 42000: The storage engine for the table doesn't support IDB-1001: Function 'uncompress' isn't supported.
45SELECT t1_DATE, UNCOMPRESS(COMPRESS(t1_DATE)) FROM t1 ORDER BY 1;
46ERROR 42000: The storage engine for the table doesn't support IDB-1001: Function 'uncompress' isn't supported.
47SELECT t1_TIME, UNCOMPRESS(COMPRESS(t1_TIME)) FROM t1 ORDER BY 1;
48ERROR 42000: The storage engine for the table doesn't support IDB-1001: Function 'uncompress' isn't supported.
49DROP DATABASE mcs269_db;
50