mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-29 19:30:37 +00:00
* chore: table creation is rejected, when partition_num exceeds peer_num * chore: modify no_active_datanode error msg * fix: ut * fix sqlness test and add limit for select peer in region_failover * upgrade greptime-proto * self cr * fix: cargo sqlness * chore: add table info in select ctx for failover * fix sqlness
48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
CREATE TABLE test_alt_table(i INTEGER, j BIGINT TIME INDEX);
|
|
|
|
Affected Rows: 0
|
|
|
|
DESC TABLE test_alt_table;
|
|
|
|
+-------+-------+------+---------+---------------+
|
|
| Field | Type | Null | Default | Semantic Type |
|
|
+-------+-------+------+---------+---------------+
|
|
| i | Int32 | YES | | FIELD |
|
|
| j | Int64 | NO | | TIME INDEX |
|
|
+-------+-------+------+---------+---------------+
|
|
|
|
ALTER TABLE test_alt_table ADD COLUMN k INTEGER;
|
|
|
|
Affected Rows: 0
|
|
|
|
DESC TABLE test_alt_table;
|
|
|
|
+-------+-------+------+---------+---------------+
|
|
| Field | Type | Null | Default | Semantic Type |
|
|
+-------+-------+------+---------+---------------+
|
|
| i | Int32 | YES | | FIELD |
|
|
| j | Int64 | NO | | TIME INDEX |
|
|
| k | Int32 | YES | | FIELD |
|
|
+-------+-------+------+---------+---------------+
|
|
|
|
-- SQLNESS ARG restart=true
|
|
ALTER TABLE test_alt_table ADD COLUMN m INTEGER;
|
|
|
|
Affected Rows: 0
|
|
|
|
DESC TABLE test_alt_table;
|
|
|
|
+-------+-------+------+---------+---------------+
|
|
| Field | Type | Null | Default | Semantic Type |
|
|
+-------+-------+------+---------+---------------+
|
|
| i | Int32 | YES | | FIELD |
|
|
| j | Int64 | NO | | TIME INDEX |
|
|
| k | Int32 | YES | | FIELD |
|
|
| m | Int32 | YES | | FIELD |
|
|
+-------+-------+------+---------+---------------+
|
|
|
|
DROP TABLE test_alt_table;
|
|
|
|
Affected Rows: 1
|
|
|