mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 13:22:57 +00:00
feat: grpc handler result (#2107)
* feat: grpc handler inner result * feat: ext header, x-greptime-err-code, x-greptime-err-msg * fix: sqlness case * chore: by comment * fix: convert status to Error
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
CREATE TABLE test(i BIGINT TIME INDEX, j INTEGER, k INTEGER NOT NULL);
|
||||
|
||||
Affected Rows: 0
|
||||
|
||||
INSERT INTO test VALUES (1, 1, 11), (2, 2, 12);
|
||||
|
||||
Affected Rows: 2
|
||||
|
||||
SELECT * FROM test;
|
||||
|
||||
+---+---+----+
|
||||
| i | j | k |
|
||||
+---+---+----+
|
||||
| 1 | 1 | 11 |
|
||||
| 2 | 2 | 12 |
|
||||
+---+---+----+
|
||||
|
||||
ALTER TABLE test DROP COLUMN j;
|
||||
|
||||
Affected Rows: 0
|
||||
|
||||
INSERT INTO test VALUES (3, NULL);
|
||||
|
||||
Error: 1004(InvalidArguments), Failed to insert value to table: greptime.public.test, source: Failed to operate table, source: Column k is not null but input has null
|
||||
|
||||
INSERT INTO test VALUES (3, 13);
|
||||
|
||||
Affected Rows: 1
|
||||
|
||||
SELECT * FROM test;
|
||||
|
||||
+---+----+
|
||||
| i | k |
|
||||
+---+----+
|
||||
| 1 | 11 |
|
||||
| 2 | 12 |
|
||||
| 3 | 13 |
|
||||
+---+----+
|
||||
|
||||
DROP TABLE test;
|
||||
|
||||
Affected Rows: 1
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
CREATE TABLE test(i BIGINT TIME INDEX, j INTEGER, k INTEGER NOT NULL);
|
||||
|
||||
INSERT INTO test VALUES (1, 1, 11), (2, 2, 12);
|
||||
|
||||
SELECT * FROM test;
|
||||
|
||||
ALTER TABLE test DROP COLUMN j;
|
||||
|
||||
INSERT INTO test VALUES (3, NULL);
|
||||
|
||||
INSERT INTO test VALUES (3, 13);
|
||||
|
||||
SELECT * FROM test;
|
||||
|
||||
DROP TABLE test;
|
||||
Reference in New Issue
Block a user