mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-06-01 12:50:40 +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
41 lines
751 B
Plaintext
41 lines
751 B
Plaintext
CREATE TABLE t(i INTEGER, j BIGINT TIME INDEX);
|
|
|
|
Affected Rows: 0
|
|
|
|
DESC TABLE t;
|
|
|
|
+-------+-------+------+---------+---------------+
|
|
| Field | Type | Null | Default | Semantic Type |
|
|
+-------+-------+------+---------+---------------+
|
|
| i | Int32 | YES | | FIELD |
|
|
| j | Int64 | NO | | TIME INDEX |
|
|
+-------+-------+------+---------+---------------+
|
|
|
|
INSERT INTO TABLE t VALUES (1, 1), (3, 3), (NULL, 4);
|
|
|
|
Affected Rows: 3
|
|
|
|
SELECT * from t;
|
|
|
|
+---+---+
|
|
| i | j |
|
|
+---+---+
|
|
| 1 | 1 |
|
|
| 3 | 3 |
|
|
| | 4 |
|
|
+---+---+
|
|
|
|
ALTER TABLE t RENAME new_table;
|
|
|
|
Affected Rows: 0
|
|
|
|
DROP TABLE t;
|
|
|
|
Error: 4001(TableNotFound), Table not found: greptime.public.t
|
|
|
|
-- SQLNESS REPLACE details.*
|
|
DROP TABLE new_table;
|
|
|
|
Affected Rows: 1
|
|
|