mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-08 14:22:58 +00:00
* feat: simple version switch * chore: remove debug print * chore: add common folder * tests: add drop table * feat: pull versioned binary * chore: don't use native-tls * chore: rm outdated docs * chore: new line * fix: save old bin dir * fix: switch version restart all node * feat: use etcd * fix: wait for election * fix: normal sqlness * refactor: hashmap for bin dir * test: past 3 major version compat crate table * refactor: allow using without setup etcd
43 lines
814 B
SQL
43 lines
814 B
SQL
|
|
-- SQLNESS ARG version=v0.9.5
|
|
CREATE TABLE test_ttl_0s(ts TIMESTAMP TIME INDEX, val INT) WITH (ttl = '0 second');
|
|
|
|
CREATE TABLE test_ttl_1s(ts TIMESTAMP TIME INDEX, val INT) WITH (ttl = '1 second');
|
|
|
|
CREATE TABLE test_ttl_none(ts TIMESTAMP TIME INDEX, val INT);
|
|
|
|
CREATE DATABASE ttl_db_1s WITH (ttl = '1 second');
|
|
|
|
CREATE DATABASE ttl_db_0s WITH (ttl = '0 second');
|
|
|
|
CREATE DATABASE ttl_db_none;
|
|
|
|
-- SQLNESS ARG version=latest
|
|
SHOW TABLES;
|
|
|
|
SHOW CREATE TABLE test_ttl_1s;
|
|
|
|
SHOW CREATE TABLE test_ttl_0s;
|
|
|
|
SHOW CREATE TABLE test_ttl_none;
|
|
|
|
DROP TABLE test_ttl_1s;
|
|
|
|
DROP TABLE test_ttl_0s;
|
|
|
|
DROP TABLE test_ttl_none;
|
|
|
|
SHOW DATABASES;
|
|
|
|
SHOW CREATE DATABASE ttl_db_1s;
|
|
|
|
SHOW CREATE DATABASE ttl_db_0s;
|
|
|
|
SHOW CREATE DATABASE ttl_db_none;
|
|
|
|
DROP DATABASE ttl_db_1s;
|
|
|
|
DROP DATABASE ttl_db_0s;
|
|
|
|
DROP DATABASE ttl_db_none;
|