-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into wcy/config_http_for_opendal
- Loading branch information
Showing
117 changed files
with
3,187 additions
and
1,143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
statement ok | ||
SET RW_IMPLICIT_FLUSH TO true; | ||
|
||
statement ok | ||
create table a(aid int, c1 int); | ||
|
||
statement ok | ||
insert into a values(1, 11), (2, 12), (3, 13); | ||
|
||
statement ok | ||
create table test(a int,b varchar); | ||
|
||
statement ok | ||
insert into test values(1, 'hello'), (2, 'world'), (3, 'risingwave'), (4, 'labs'); | ||
|
||
# Currently, we allow declaring cursors out of TRANSACTION, because we don't have RW txn support. In PG, it's not allowed | ||
statement ok | ||
DECLARE | ||
test_cursor CURSOR FOR | ||
SELECT * FROM test where a > 2 ORDER BY a; | ||
|
||
statement ok | ||
CLOSE test_cursor; | ||
|
||
statement ok | ||
START TRANSACTION ISOLATION LEVEL REPEATABLE READ; | ||
|
||
statement ok | ||
DECLARE | ||
test_cursor CURSOR FOR | ||
SELECT * FROM test where a > 2 ORDER BY a; | ||
|
||
statement error cursor "test_cursor" already exists | ||
DECLARE | ||
test_cursor CURSOR FOR | ||
SELECT * FROM test where a > 2; | ||
|
||
statement error table or source not found: test | ||
DECLARE | ||
test_cursor CURSOR FOR | ||
SELECT * FROM test_non_existent where a > 2; | ||
|
||
statement error cursor "test_cursor_non_existent" does not exist | ||
FETCH NEXT from test_cursor_non_existent; | ||
|
||
query II | ||
FETCH NEXT from test_cursor; | ||
---- | ||
3 risingwave | ||
|
||
query II | ||
FETCH NEXT from test_cursor; | ||
---- | ||
4 labs | ||
|
||
query II | ||
FETCH NEXT from test_cursor; | ||
---- | ||
|
||
statement error cursor "test_cursor_non_existent" does not exist | ||
CLOSE test_cursor_non_existent; | ||
|
||
statement ok | ||
CLOSE test_cursor; | ||
|
||
statement error cursor "test_cursor" does not exist | ||
FETCH NEXT from test_cursor; | ||
|
||
statement ok | ||
DECLARE | ||
test_cursor CURSOR FOR | ||
SELECT * FROM test JOIN a ON test.a > 1 and a.aid = test.a ORDER BY test.a; | ||
|
||
query IIII | ||
FETCH NEXT from test_cursor; | ||
---- | ||
2 world 2 12 | ||
|
||
query IIII | ||
FETCH NEXT from test_cursor; | ||
---- | ||
3 risingwave 3 13 | ||
|
||
query IIII | ||
FETCH NEXT from test_cursor; | ||
---- | ||
|
||
statement ok | ||
COMMIT; | ||
|
||
statement ok | ||
drop table test; | ||
|
||
statement ok | ||
drop table a; |
Oops, something went wrong.