mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-16 13:00:40 +00:00
* feat: add insert test cases * fix: update results after rebase develop * feat: supports unsigned integer types and big_insert test * test: add insert_invalid test * feat: supports time index constraint for bigint type * chore: time index column at last * test: adds more order, limit test * fix: style * feat: adds numbers table in standable memory catalog mode * feat: enable fail_fast and test_filter in sqlness * feat: add more tests * fix: test_filter * test: add alter tests * feat: supports if_not_exists when create database * test: filter_push_down and catalog test * fix: compile error * fix: delete output file * chore: ignore integration test output in git * test: update all integration test results * fix: by code review * chore: revert .gitignore * feat: sort the show tables/databases results * chore: remove issue link * fix: compile error and code format after rebase * test: update all integration test results
45 lines
1003 B
Plaintext
45 lines
1003 B
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
|
|
|