-
Notifications
You must be signed in to change notification settings - Fork 590
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' of https://github.com/risingwavelabs/risingwave i…
…nto li0k/storage_split_with_size
- Loading branch information
Showing
37 changed files
with
777 additions
and
444 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
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,82 @@ | ||
statement ok | ||
create temporary source s1 (v1 int, v2 varchar) with ( | ||
connector = 'kafka', | ||
topic = 'kafka_1_partition_topic', | ||
properties.bootstrap.server = 'message_queue:29092', | ||
scan.startup.mode = 'earliest' | ||
) FORMAT PLAIN ENCODE JSON | ||
|
||
query IT rowsort | ||
select * from s1 | ||
---- | ||
1 1 | ||
2 22 | ||
3 333 | ||
4 4444 | ||
|
||
query IT rowsort | ||
select * from s1 where _rw_kafka_timestamp > '1977-01-01 00:00:00+00:00' | ||
---- | ||
1 1 | ||
2 22 | ||
3 333 | ||
4 4444 | ||
|
||
query IT rowsort | ||
select * from s1 where _rw_kafka_timestamp > '1977-01-01 00:00:00' | ||
---- | ||
1 1 | ||
2 22 | ||
3 333 | ||
4 4444 | ||
|
||
query IT rowsort | ||
select * from s1 where _rw_kafka_timestamp > TO_TIMESTAMP('1977-01-01 00:00:00.000000', 'YYYY-MM-DD HH24:MI:SS.US') | ||
---- | ||
1 1 | ||
2 22 | ||
3 333 | ||
4 4444 | ||
|
||
statement error expected format | ||
select * from s1 where _rw_kafka_timestamp > 'abc' | ||
|
||
statement error out of range | ||
select * from s1 where _rw_kafka_timestamp < TO_TIMESTAMP(2147483647 + 1) | ||
|
||
query IT | ||
select * from s1 where _rw_kafka_timestamp > '2045-01-01 0:00:00+00:00' | ||
---- | ||
|
||
query B | ||
select _rw_kafka_timestamp > '1977-01-01 00:00:00+00:00' from s1 | ||
---- | ||
t | ||
t | ||
t | ||
t | ||
|
||
query B | ||
select _rw_kafka_timestamp < now() from s1 | ||
---- | ||
t | ||
t | ||
t | ||
t | ||
|
||
query B | ||
select _rw_kafka_timestamp < now() - interval '1 day' from s1 | ||
---- | ||
f | ||
f | ||
f | ||
f | ||
|
||
query IT rowsort | ||
select * from s1 limit 2 | ||
---- | ||
1 1 | ||
2 22 | ||
|
||
statement ok | ||
drop source s1 |
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,19 @@ | ||
# https://github.com/risingwavelabs/risingwave/issues/17560 | ||
|
||
statement ok | ||
create aggregate sum00(value int) returns int language python as $$ | ||
def create_state(): | ||
return 0 | ||
def accumulate(state, value): | ||
return state + value | ||
def retract(state, value): | ||
return state - value | ||
def finish(state): | ||
return state | ||
$$; | ||
|
||
query ii | ||
select t.value, sum00(weight) OVER (PARTITION BY value) from (values (1, 1), (null, 2), (3, 3)) as t(value, weight); | ||
---- | ||
1 1 | ||
3 3 |
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
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
Oops, something went wrong.