mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-19 14:30:43 +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
18 lines
471 B
SQL
18 lines
471 B
SQL
CREATE TABLE integers(i BIGINT TIME INDEX);
|
|
|
|
INSERT INTO integers VALUES (1), (2), (3);
|
|
|
|
SELECT DISTINCT i%2 FROM integers ORDER BY 1;
|
|
|
|
SELECT DISTINCT i % 2 FROM integers WHERE i<3 ORDER BY i;
|
|
|
|
SELECT DISTINCT ON (1) i % 2, i FROM integers WHERE i<3 ORDER BY i;
|
|
|
|
SELECT DISTINCT integers.i FROM integers ORDER BY i DESC;
|
|
|
|
SELECT DISTINCT i FROM integers ORDER BY integers.i DESC;
|
|
|
|
SELECT DISTINCT integers.i FROM integers ORDER BY integers.i DESC;
|
|
|
|
DROP TABLE integers;
|