mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-09 06:42:57 +00:00
* [WIP]:delete sql * [fix]:time parser bug * [fix]:resolve conflict * [fmt]:cargo fmt * [fix]:remove unless log * [fix]:test * [feat]:add error parse * [fix]:resolve conflict * [fix]:remove unless code * [fix]:remove unless code * [test]:add IT * [fix]:add license * [fix]:ci * [fix]:ci * [fix]:ci * [fix]:remove * [fix]:ci * [feat]:add sql * [fix]:modify sql * [feat]:refactor parser_expr * [feat]:rm backtrace * [fix]:ci * [fix]: conversation * [fix]: conversation * feat:refactor delete * feat:refactor delete * fix:resolve conversation * fix:ut * fix:ut * fix:conversation * fix:conversation * fix:conservation --------- Co-authored-by: xieqijun <qijun@apache.org>
53 lines
1.0 KiB
Plaintext
53 lines
1.0 KiB
Plaintext
CREATE TABLE strings(i STRING, t BIGINT, time index(t));
|
|
|
|
Affected Rows: 0
|
|
|
|
INSERT INTO strings VALUES ('â‚(', 1);
|
|
|
|
Affected Rows: 1
|
|
|
|
INSERT INTO strings VALUES (3, 4);
|
|
|
|
Error: 2000(InvalidSyntax), Failed to parse value: Fail to parse number 3, invalid column type: String(StringType)
|
|
|
|
SELECT * FROM strings WHERE i = 'â‚(';
|
|
|
|
+-----+---+
|
|
| i | t |
|
|
+-----+---+
|
|
| â‚( | 1 |
|
|
+-----+---+
|
|
|
|
CREATE TABLE a(i integer, j BIGINT, time index(j));
|
|
|
|
Affected Rows: 0
|
|
|
|
INSERT INTO a VALUES (1, 2);
|
|
|
|
Affected Rows: 1
|
|
|
|
INSERT INTO a VALUES (1);
|
|
|
|
Error: 1004(InvalidArguments), Columns and values number mismatch, columns: 2, values: 1
|
|
|
|
INSERT INTO a VALUES (1,2,3);
|
|
|
|
Error: 1004(InvalidArguments), Columns and values number mismatch, columns: 2, values: 3
|
|
|
|
INSERT INTO a VALUES (1,2),(3);
|
|
|
|
Error: 1004(InvalidArguments), Columns and values number mismatch, columns: 2, values: 1
|
|
|
|
INSERT INTO a VALUES (1,2),(3,4,5);
|
|
|
|
Error: 1004(InvalidArguments), Columns and values number mismatch, columns: 2, values: 3
|
|
|
|
DROP TABLE strings;
|
|
|
|
Affected Rows: 1
|
|
|
|
DROP TABLE a;
|
|
|
|
Affected Rows: 1
|
|
|