-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: bump sqllogictest & fix backwards-compat-test/e2e-tests #14354
Changes from all commits
8a7e2fa
65da406
b1305c4
a7b0f27
67d3b85
0152adc
a65b52f
ff3c396
f911389
736b907
e02104a
d32ce31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,8 +48,8 @@ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse | |
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash | ||
RUN cargo binstall -y --no-symlinks cargo-llvm-cov cargo-nextest cargo-hakari cargo-sort cargo-cache cargo-audit \ | ||
[email protected] \ | ||
sqllogictest-bin@0.18.0 \ | ||
&& cargo install sccache \ | ||
sqllogictest-bin@0.19.1 \ | ||
sccache@0.7.4 \ | ||
&& cargo cache -a \ | ||
&& rm -rf "/root/.cargo/registry/index" \ | ||
&& rm -rf "/root/.cargo/registry/cache" \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
include ./aggregate/*.slt.part | ||
include ./aggregate/*/*.slt.part | ||
include ./join/*.slt.part | ||
include ./join/*/*.slt.part | ||
include ./conjunction/*.slt.part | ||
include ./conjunction/*/*.slt.part | ||
include ./aggregate/**/*.slt.part | ||
include ./join/**/*.slt.part | ||
include ./conjunction/**/*.slt.part | ||
include ./limit/*.slt.part | ||
include ./select/*.slt.part | ||
include ./cte/*.slt.part |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ SET RW_IMPLICIT_FLUSH TO true; | |
include ../batch/types/boolean.slt.part | ||
include ../batch/types/cast.slt.part | ||
include ../batch/types/date.slt | ||
include ../batch/types/intercal.slt.part | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😄 |
||
include ../batch/types/interval.slt.part | ||
include ../batch/types/number_arithmetic.slt.part | ||
include ../batch/types/temporal_arithmetic.slt.part | ||
include ../batch/types/time.slt.part | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @stdrc I just ran There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess that's because you renamed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think it should be renamed. It's leaved here just for reference. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the way you like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK sure There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, interesting...Seems I did indeed want it to be included... |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# This file is generated by `gen.py`. Do not edit it manually! | ||
|
||
statement ok | ||
create table t ( | ||
id int | ||
, p1 int | ||
, p2 int | ||
, time int | ||
, v1 int | ||
, v2 int | ||
); | ||
|
||
statement ok | ||
create view v as | ||
select | ||
* | ||
, row_number() over (partition by p1 order by time, id) as out1 | ||
, row_number() over (partition by p1 order by p2 desc, id) as out2 | ||
from t; | ||
|
||
statement ok | ||
insert into t values | ||
(100001, 100, 200, 1, 701, 805) | ||
, (100002, 100, 200, 2, 700, 806) | ||
, (100003, 100, 208, 2, 723, 807) | ||
, (100004, 103, 200, 2, 702, 808); | ||
|
||
query II | ||
select * from v order by id; | ||
---- | ||
100001 100 200 1 701 805 1 2 | ||
100002 100 200 2 700 806 2 3 | ||
100003 100 208 2 723 807 3 1 | ||
100004 103 200 2 702 808 1 1 | ||
|
||
statement ok | ||
insert into t values | ||
(100005, 100, 200, 3, 717, 810) | ||
, (100006, 105, 204, 5, 703, 828); | ||
|
||
query II | ||
select * from v order by id; | ||
---- | ||
100001 100 200 1 701 805 1 2 | ||
100002 100 200 2 700 806 2 3 | ||
100003 100 208 2 723 807 3 1 | ||
100004 103 200 2 702 808 1 1 | ||
100005 100 200 3 717 810 4 4 | ||
100006 105 204 5 703 828 1 1 | ||
|
||
statement ok | ||
update t set v1 = 799 where id = 100002; -- value change | ||
|
||
statement ok | ||
update t set p2 = 200 where id = 100003; -- partition change | ||
|
||
statement ok | ||
update t set "time" = 1 where id = 100005; -- order change | ||
|
||
query iiiiiii | ||
select * from v order by id; | ||
---- | ||
100001 100 200 1 701 805 1 1 | ||
100002 100 200 2 799 806 3 2 | ||
100003 100 200 2 723 807 4 3 | ||
100004 103 200 2 702 808 1 1 | ||
100005 100 200 1 717 810 2 4 | ||
100006 105 204 5 703 828 1 1 | ||
|
||
statement ok | ||
delete from t where time = 2; | ||
|
||
query iiiiiii | ||
select * from v order by id; | ||
---- | ||
100001 100 200 1 701 805 1 1 | ||
100005 100 200 1 717 810 2 2 | ||
100006 105 204 5 703 828 1 1 | ||
|
||
statement ok | ||
drop view v; | ||
|
||
statement ok | ||
drop table t; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# This file is generated by `gen.py`. Do not edit it manually! | ||
|
||
statement ok | ||
create table t ( | ||
id int | ||
, p1 int | ||
, p2 int | ||
, time int | ||
, v1 int | ||
, v2 int | ||
); | ||
|
||
statement ok | ||
create materialized view v as | ||
select | ||
* | ||
, row_number() over (partition by p1 order by time, id) as out1 | ||
, row_number() over (partition by p1 order by p2 desc, id) as out2 | ||
from t; | ||
|
||
statement ok | ||
insert into t values | ||
(100001, 100, 200, 1, 701, 805) | ||
, (100002, 100, 200, 2, 700, 806) | ||
, (100003, 100, 208, 2, 723, 807) | ||
, (100004, 103, 200, 2, 702, 808); | ||
|
||
query II | ||
select * from v order by id; | ||
---- | ||
100001 100 200 1 701 805 1 2 | ||
100002 100 200 2 700 806 2 3 | ||
100003 100 208 2 723 807 3 1 | ||
100004 103 200 2 702 808 1 1 | ||
|
||
statement ok | ||
insert into t values | ||
(100005, 100, 200, 3, 717, 810) | ||
, (100006, 105, 204, 5, 703, 828); | ||
|
||
query II | ||
select * from v order by id; | ||
---- | ||
100001 100 200 1 701 805 1 2 | ||
100002 100 200 2 700 806 2 3 | ||
100003 100 208 2 723 807 3 1 | ||
100004 103 200 2 702 808 1 1 | ||
100005 100 200 3 717 810 4 4 | ||
100006 105 204 5 703 828 1 1 | ||
|
||
statement ok | ||
update t set v1 = 799 where id = 100002; -- value change | ||
|
||
statement ok | ||
update t set p2 = 200 where id = 100003; -- partition change | ||
|
||
statement ok | ||
update t set "time" = 1 where id = 100005; -- order change | ||
|
||
query iiiiiii | ||
select * from v order by id; | ||
---- | ||
100001 100 200 1 701 805 1 1 | ||
100002 100 200 2 799 806 3 2 | ||
100003 100 200 2 723 807 4 3 | ||
100004 103 200 2 702 808 1 1 | ||
100005 100 200 1 717 810 2 4 | ||
100006 105 204 5 703 828 1 1 | ||
|
||
statement ok | ||
delete from t where time = 2; | ||
|
||
query iiiiiii | ||
select * from v order by id; | ||
---- | ||
100001 100 200 1 701 805 1 1 | ||
100005 100 200 1 717 810 2 2 | ||
100006 105 204 5 703 828 1 1 | ||
|
||
statement ok | ||
drop materialized view v; | ||
|
||
statement ok | ||
drop table t; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I don't add this flush, q0,1,2 succeed, but q3 failed. Why? 🤡
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's ordering of
DELETE
andINSERT
, I don't understand why q0,1,2 succeedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q0,1,2 seem only depend on
bid
while q3 also depends onauction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what does this imply? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDK, just seems to be explainable if
bid
table is OK butauction
table is not readyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can reproduce this locally. It fails sometimes, and
person
is empty when it fails.bid
andauction
is fine. 🤡There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had thought that when DML query returns, it will take effect, although not immediately visible. But it seems not correct? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the DML returns, the data is only sent to some internal channels, not handled by the table yet, and there are multiple channels so the order is not known.