Skip to content
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(regress): enable int4 #6338

Merged
merged 1 commit into from
Nov 13, 2022
Merged

test(regress): enable int4 #6338

merged 1 commit into from
Nov 13, 2022

Conversation

yang-han
Copy link
Contributor

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.

What's changed and what's your intention?

Enable PostgreSQL regress test for int4.

  • add int4 in schedule
  • comment out all not-passed SQL statement in int4.sql
  • fix a typo in regress README

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

Refer to a related PR or issue link (optional)

#6190

@CLAassistant
Copy link

CLAassistant commented Nov 13, 2022

CLA assistant check
All committers have signed the CLA.

@yang-han yang-han changed the title test(regress): enable int2 test(regress): enable int4 Nov 13, 2022
@yang-han
Copy link
Contributor Author

yang-han commented Nov 13, 2022

The errors caused by the full int4.sql are attached for reference:


[cargo-make] INFO - cargo make 0.36.2
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: configure-if-not-configured
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Skipping Task: configure-if-not-configured 
[cargo-make] INFO - Build Done in 1.05 seconds.
[cargo-make] INFO - cargo make 0.36.2
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: k
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Running Task: k
[cargo-make] INFO - Execute Command: "/bin/bash" "/tmp/fsio_JzAilt03zK.sh"
[cargo-make] INFO - Build Done in 1.09 seconds.
[cargo-make] INFO - cargo make 0.36.2
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: configure-if-not-configured
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Skipping Task: configure-if-not-configured 
[cargo-make] INFO - Build Done in 1.03 seconds.
[cargo-make] INFO - cargo make 0.36.2
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: clean-data
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Running Task: clean-data
[cargo-make] INFO - Build Done in 1.03 seconds.
[cargo-make] INFO - cargo make 0.36.2
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: configure-if-not-configured
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Skipping Task: configure-if-not-configured 
[cargo-make] INFO - Build Done in 1.02 seconds.
[cargo-make] INFO - cargo make 0.36.2
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: d
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Running Task: prepare-dir
[cargo-make] INFO - Execute Command: "/bin/bash" "/tmp/fsio_UfePlwuOyu.sh"
Using /home/hyang/codes/risingwave/.risingwave as base folder
[cargo-make] INFO - Skipping Task: check-risedev-configured 
[cargo-make] INFO - Skipping Task: download-minio 
[cargo-make] INFO - Skipping Task: download-mcli 
[cargo-make] INFO - Skipping Task: download-etcd 
[cargo-make] INFO - Skipping Task: download-grafana 
[cargo-make] INFO - Skipping Task: download-prometheus 
[cargo-make] INFO - Skipping Task: download-jaeger 
[cargo-make] INFO - Skipping Task: download-kafka 
[cargo-make] INFO - Skipping Task: download-redis 
[cargo-make] INFO - Running Task: build-risingwave
[cargo-make] INFO - Execute Command: "/bin/bash" "/tmp/fsio_CWs7hNOy59.sh"
�[34m�[1m[Reminder]�(B�[m risedev will only build �[34mrisingwave_cmd(_all) and risedev�(B�[m crates.
+ RUSTFLAGS=<not set>
[cargo-make] INFO - Running Task: link-standalone-binaries
[cargo-make] INFO - Execute Command: "/bin/bash" "/tmp/fsio_wPZ4APNC3L.sh"
[cargo-make] INFO - Skipping Task: link-all-in-one-binaries 
[cargo-make] INFO - Skipping Task: link-user-bin 
[cargo-make] INFO - Running Task: extract-dashboard-artifact
[cargo-make] INFO - Execute Command: "/bin/bash" "/tmp/fsio_Ca58Vn7qzi.sh"
Extracting dashboard artifacts to /home/hyang/codes/risingwave/.risingwave/ui
Preparing worktree (detached HEAD 5de43c389)
HEAD is now at 5de43c389 Update dashboard-artifact to output generated at 5d8465a
[cargo-make] INFO - Skipping Task: export-dashboard-v2 
[cargo-make] INFO - Running Task: prepare-config
[cargo-make] INFO - Execute Command: "/bin/bash" "/tmp/fsio_u1S08zthSR.sh"
[cargo-make] INFO - Execute Command: "target/debug/risedev-dev"
[risedev-preflight-check] WARN - `no_proxy` is not set correctly, which might cause failure in RiseDev and RisingWave. Consider `export no_proxy=localhost,127.0.0.1,::1`.
---- summary of startup time ----
meta-node-5690: 0.10s
compute-node-5688: 0.13s
frontend-4566: 0.10s
-------------------------------

All services started successfully.
* Run tmux a -t risedev to attach to the tmux console.
* Run psql -h localhost -p 4566 -d dev -U root to start Postgres interactive shell.
* You may find logs using ./risedev l command
* Run ./risedev k to kill cluster.
* Run ./risedev install to run `risedev` anywhere!
[cargo-make] INFO - Build Done in 2.04 seconds.
Ready to run command:
psql -X -a -q -h 127.0.0.1 -p 4566 -d dev -U root -v HIDE_TABLEAM=on -v HIDE_TOAST_COMPRESSION=on
 for test case:boolean
Ready to run command:
psql -X -a -q -h 127.0.0.1 -p 4566 -d dev -U root -v HIDE_TABLEAM=on -v HIDE_TOAST_COMPRESSION=on
 for test case:varchar
Ready to run command:
psql -X -a -q -h 127.0.0.1 -p 4566 -d dev -U root -v HIDE_TABLEAM=on -v HIDE_TOAST_COMPRESSION=on
 for test case:int2
Ready to run command:
psql -X -a -q -h 127.0.0.1 -p 4566 -d dev -U root -v HIDE_TABLEAM=on -v HIDE_TOAST_COMPRESSION=on
 for test case:int4
�[2m2022-11-13T14:18:54.021836Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 <> int2 '0';
�[2m2022-11-13T14:18:54.022146Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1      
--------------
-      123456
-     -123456
-  2147483647
- -2147483647
-(4 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.022268Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 <> int4 '0';
�[2m2022-11-13T14:18:54.022451Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1      
--------------
-      123456
-     -123456
-  2147483647
- -2147483647
-(4 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.022544Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 = int2 '0';
�[2m2022-11-13T14:18:54.022677Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
- f1 
-----
-  0
-(1 row)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.022764Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 = int4 '0';
�[2m2022-11-13T14:18:54.022895Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
- f1 
-----
-  0
-(1 row)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.022985Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 < int2 '0';
�[2m2022-11-13T14:18:54.023133Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1      
--------------
-     -123456
- -2147483647
-(2 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.023227Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 < int4 '0';
�[2m2022-11-13T14:18:54.023375Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1      
--------------
-     -123456
- -2147483647
-(2 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.023467Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 <= int2 '0';
�[2m2022-11-13T14:18:54.023622Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1      
--------------
-           0
-     -123456
- -2147483647
-(3 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.023714Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 <= int4 '0';
�[2m2022-11-13T14:18:54.023869Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1      
--------------
-           0
-     -123456
- -2147483647
-(3 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.023958Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 > int2 '0';
�[2m2022-11-13T14:18:54.024131Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1     
-------------
-     123456
- 2147483647
-(2 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.024243Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 > int4 '0';
�[2m2022-11-13T14:18:54.024392Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1     
-------------
-     123456
- 2147483647
-(2 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.024483Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 >= int2 '0';
�[2m2022-11-13T14:18:54.024637Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1     
-------------
-          0
-     123456
- 2147483647
-(3 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.024728Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.* FROM INT4_TBL i WHERE i.f1 >= int4 '0';
�[2m2022-11-13T14:18:54.024881Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1     
-------------
-          0
-     123456
- 2147483647
-(3 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: '0'

�[2m2022-11-13T14:18:54.024982Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
-- positive odds
SELECT i.* FROM INT4_TBL i WHERE (i.f1 % int2 '2') = int2 '1';
�[2m2022-11-13T14:18:54.025114Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1     
-------------
- 2147483647
-(1 row)
+ERROR:  QueryError: sql parser error: Expected ), found: '2'

�[2m2022-11-13T14:18:54.025219Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
-- any evens
SELECT i.* FROM INT4_TBL i WHERE (i.f1 % int4 '2') = int2 '0';
�[2m2022-11-13T14:18:54.025365Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-   f1    
----------
-       0
-  123456
- -123456
-(3 rows)
+ERROR:  QueryError: sql parser error: Expected ), found: '2'

�[2m2022-11-13T14:18:54.025486Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.f1, i.f1 * int2 '2' AS x FROM INT4_TBL i
WHERE abs(f1) < 1073741824;
�[2m2022-11-13T14:18:54.025648Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-   f1    |    x    
----------+---------
-       0 |       0
-  123456 |  246912
- -123456 | -246912
-(3 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: AS

�[2m2022-11-13T14:18:54.025767Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.f1, i.f1 * int4 '2' AS x FROM INT4_TBL i
WHERE abs(f1) < 1073741824;
�[2m2022-11-13T14:18:54.025928Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-   f1    |    x    
----------+---------
-       0 |       0
-  123456 |  246912
- -123456 | -246912
-(3 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: AS

�[2m2022-11-13T14:18:54.026051Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.f1, i.f1 + int2 '2' AS x FROM INT4_TBL i
WHERE f1 < 2147483646;
�[2m2022-11-13T14:18:54.026245Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1      |      x      
--------------+-------------
-           0 |           2
-      123456 |      123458
-     -123456 |     -123454
- -2147483647 | -2147483645
-(4 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: AS

�[2m2022-11-13T14:18:54.026369Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.f1, i.f1 + int4 '2' AS x FROM INT4_TBL i
WHERE f1 < 2147483646;
�[2m2022-11-13T14:18:54.026562Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1      |      x      
--------------+-------------
-           0 |           2
-      123456 |      123458
-     -123456 |     -123454
- -2147483647 | -2147483645
-(4 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: AS

�[2m2022-11-13T14:18:54.026701Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.f1, i.f1 - int2 '2' AS x FROM INT4_TBL i
WHERE f1 > -2147483647;
�[2m2022-11-13T14:18:54.026894Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1     |     x      
-------------+------------
-          0 |         -2
-     123456 |     123454
-    -123456 |    -123458
- 2147483647 | 2147483645
-(4 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: AS

�[2m2022-11-13T14:18:54.027018Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.f1, i.f1 - int4 '2' AS x FROM INT4_TBL i
WHERE f1 > -2147483647;
�[2m2022-11-13T14:18:54.027207Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1     |     x      
-------------+------------
-          0 |         -2
-     123456 |     123454
-    -123456 |    -123458
- 2147483647 | 2147483645
-(4 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: AS

�[2m2022-11-13T14:18:54.027304Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.f1, i.f1 / int2 '2' AS x FROM INT4_TBL i;
�[2m2022-11-13T14:18:54.027509Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1      |      x      
--------------+-------------
-           0 |           0
-      123456 |       61728
-     -123456 |      -61728
-  2147483647 |  1073741823
- -2147483647 | -1073741823
-(5 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: AS

�[2m2022-11-13T14:18:54.027615Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT i.f1, i.f1 / int4 '2' AS x FROM INT4_TBL i;
�[2m2022-11-13T14:18:54.027816Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-     f1      |      x      
--------------+-------------
-           0 |           0
-      123456 |       61728
-     -123456 |      -61728
-  2147483647 |  1073741823
- -2147483647 | -1073741823
-(5 rows)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: AS

�[2m2022-11-13T14:18:54.028157Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT int2 '2' * int2 '2' = int2 '16' / int2 '4' AS true;
�[2m2022-11-13T14:18:54.028297Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
- true 
-------
- t
-(1 row)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: *

�[2m2022-11-13T14:18:54.028383Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT int4 '2' * int2 '2' = int2 '16' / int4 '4' AS true;
�[2m2022-11-13T14:18:54.028512Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
- true 
-------
- t
-(1 row)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: *

�[2m2022-11-13T14:18:54.028598Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT int2 '2' * int4 '2' = int4 '16' / int2 '4' AS true;
�[2m2022-11-13T14:18:54.028726Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
- true 
-------
- t
-(1 row)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: *

�[2m2022-11-13T14:18:54.028812Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT int4 '1000' < int4 '999' AS false;
�[2m2022-11-13T14:18:54.028941Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
- false 
--------
- f
-(1 row)
+ERROR:  QueryError: sql parser error: Expected end of statement, found: <

�[2m2022-11-13T14:18:54.029201Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
-- corner case
SELECT (-1::int4<<31)::text;
�[2m2022-11-13T14:18:54.029344Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-    text     
+  ?column?   
 -------------
  -2147483648
 (1 row)

�[2m2022-11-13T14:18:54.029453Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT ((-1::int4<<31)+1)::text;
�[2m2022-11-13T14:18:54.029580Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-    text     
+  ?column?   
 -------------
  -2147483647
 (1 row)

�[2m2022-11-13T14:18:54.029710Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT (-2147483648)::int4 % (-1)::int4;
�[2m2022-11-13T14:18:54.029837Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
- ?column? 
-----------
-        0
-(1 row)
+ERROR:  QueryError: Expr error: Out of range

�[2m2022-11-13T14:18:54.029954Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
SELECT (-2147483648)::int4 % (-1)::int2;
�[2m2022-11-13T14:18:54.030080Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
- ?column? 
-----------
-        0
-(1 row)
+ERROR:  QueryError: Expr error: Out of range

�[2m2022-11-13T14:18:54.030320Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
-- check rounding when casting from float
SELECT x, x::int4 AS int4_value
FROM (VALUES (-2.5::float8),
             (-1.5::float8),
             (-0.5::float8),
             (0.0::float8),
             (0.5::float8),
             (1.5::float8),
             (2.5::float8)) t(x);
�[2m2022-11-13T14:18:54.030583Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
   x   | int4_value 
 ------+------------
     0 |          0
   0.5 |          0
-  1.5 |          2
+  1.5 |          1
   2.5 |          2
  -0.5 |          0
- -1.5 |         -2
+ -1.5 |         -1
  -2.5 |         -2
 (7 rows)

�[2m2022-11-13T14:18:54.030983Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
-- test gcd()
SELECT a, b, gcd(a, b), gcd(a, -b), gcd(b, a), gcd(-b, a)
FROM (VALUES (0::int4, 0::int4),
             (0::int4, 6410818::int4),
             (61866666::int4, 6410818::int4),
             (-61866666::int4, 6410818::int4),
             ((-2147483648)::int4, 1::int4),
             ((-2147483648)::int4, 2147483647::int4),
             ((-2147483648)::int4, 1073741824::int4)) AS v(a, b);
�[2m2022-11-13T14:18:54.031390Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-      a      |     b      |    gcd     |    gcd     |    gcd     |    gcd     
--------------+------------+------------+------------+------------+------------
-           0 |          0 |          0 |          0 |          0 |          0
-           0 |    6410818 |    6410818 |    6410818 |    6410818 |    6410818
-    61866666 |    6410818 |       1466 |       1466 |       1466 |       1466
-   -61866666 |    6410818 |       1466 |       1466 |       1466 |       1466
- -2147483648 |          1 |          1 |          1 |          1 |          1
- -2147483648 | 2147483647 |          1 |          1 |          1 |          1
- -2147483648 | 1073741824 | 1073741824 | 1073741824 | 1073741824 | 1073741824
-(7 rows)
+ERROR:  QueryError: Feature is not yet implemented: unsupported function: "gcd"
+Tracking issue: https://github.com/risingwavelabs/risingwave/issues/112

�[2m2022-11-13T14:18:54.031609Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m query input:
-- test lcm()
SELECT a, b, lcm(a, b), lcm(a, -b), lcm(b, a), lcm(-b, a)
FROM (VALUES (0::int4, 0::int4),
             (0::int4, 42::int4),
             (42::int4, 42::int4),
             (330::int4, 462::int4),
             (-330::int4, 462::int4),
             ((-2147483648)::int4, 0::int4)) AS v(a, b);
�[2m2022-11-13T14:18:54.031893Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Diff:
-      a      |  b  | lcm  | lcm  | lcm  | lcm  
--------------+-----+------+------+------+------
-           0 |   0 |    0 |    0 |    0 |    0
-           0 |  42 |    0 |    0 |    0 |    0
-          42 |  42 |   42 |   42 |   42 |   42
-         330 | 462 | 2310 | 2310 | 2310 | 2310
-        -330 | 462 | 2310 | 2310 | 2310 | 2310
- -2147483648 |   0 |    0 |    0 |    0 |    0
-(6 rows)
+ERROR:  QueryError: Feature is not yet implemented: unsupported function: "lcm"
+Tracking issue: https://github.com/risingwavelabs/risingwave/issues/112

�[2m2022-11-13T14:18:56.784695Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test::schedule�[0m�[2m:�[0m Parallel schedule failed, these tests are different: ["int4"]
�[2m2022-11-13T14:18:56.785070Z�[0m �[31mERROR�[0m �[2mrisingwave_regress_test�[0m�[2m:�[0m Risingwave regress test failed: Risingwave regress tests failed, these tests are different from expected output: ["int4"]

Stack backtrace:
   0: risingwave_regress_test::schedule::Schedule::do_run::{{closure}}
             at ./src/tests/regress/src/schedule.rs:141:13
   1: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/future/mod.rs:91:19
   2: risingwave_regress_test::schedule::Schedule::run::{{closure}}
             at ./src/tests/regress/src/schedule.rs:108:19
   3: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/future/mod.rs:91:19
   4: risingwave_regress_test::run_schedules::{{closure}}
             at ./src/tests/regress/src/lib.rs:65:19
   5: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/future/mod.rs:91:19
   6: risingwave_regress_test::regress_main::{{closure}}
             at ./src/tests/regress/src/lib.rs:51:30
   7: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/future/mod.rs:91:19
   8: risingwave_regress_test::main::{{closure}}
             at ./src/tests/regress/src/bin/main.rs:21:24
   9: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/future/mod.rs:91:19
  10: <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
             at /home/hyang/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-0.1.36/src/instrument.rs:272:9
  11: tokio::park::thread::CachedParkThread::block_on::{{closure}}
             at /home/hyang/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.1/src/park/thread.rs:267:54
  12: tokio::coop::with_budget::{{closure}}
             at /home/hyang/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.1/src/coop.rs:102:9
  13: std::thread::local::LocalKey<T>::try_with
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/thread/local.rs:446:16
  14: std::thread::local::LocalKey<T>::with
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/thread/local.rs:422:9
  15: tokio::coop::with_budget
             at /home/hyang/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.1/src/coop.rs:95:5
      tokio::coop::budget
             at /home/hyang/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.1/src/coop.rs:72:5
      tokio::park::thread::CachedParkThread::block_on
             at /home/hyang/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.1/src/park/thread.rs:267:31
  16: tokio::runtime::enter::Enter::block_on
             at /home/hyang/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.1/src/runtime/enter.rs:152:13
  17: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
             at /home/hyang/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.1/src/runtime/scheduler/multi_thread/mod.rs:79:9
  18: tokio::runtime::Runtime::block_on
             at /home/hyang/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.21.1/src/runtime/mod.rs:492:44
  19: risingwave_regress_test::main
             at ./src/tests/regress/src/bin/main.rs:21:5
  20: core::ops::function::FnOnce::call_once
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/ops/function.rs:251:5
  21: std::sys_common::backtrace::__rust_begin_short_backtrace
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/sys_common/backtrace.rs:122:18
  22: std::rt::lang_start::{{closure}}
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/rt.rs:166:18
  23: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/core/src/ops/function.rs:286:13
      std::panicking::try::do_call
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/panicking.rs:483:40
      std::panicking::try
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/panicking.rs:447:19
      std::panic::catch_unwind
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/panic.rs:137:14
      std::rt::lang_start_internal::{{closure}}
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/rt.rs:148:48
      std::panicking::try::do_call
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/panicking.rs:483:40
      std::panicking::try
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/panicking.rs:447:19
      std::panic::catch_unwind
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/panic.rs:137:14
      std::rt::lang_start_internal
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/rt.rs:148:20
  24: std::rt::lang_start
             at /rustc/b8c35ca26b191bb9a9ac669a4b3f4d3d52d97fb1/library/std/src/rt.rs:165:17
  25: main
  26: __libc_start_main
             at /build/glibc-77giwP/glibc-2.24/csu/../csu/libc-start.c:291
  27: _start. Please ensure that your psql version is larger than 14.1

@codecov
Copy link

codecov bot commented Nov 13, 2022

Codecov Report

Merging #6338 (293a63c) into main (001387d) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #6338      +/-   ##
==========================================
+ Coverage   74.40%   74.41%   +0.01%     
==========================================
  Files         953      953              
  Lines      155119   155119              
==========================================
+ Hits       115417   115436      +19     
+ Misses      39702    39683      -19     
Flag Coverage Δ
rust 74.41% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/tracing/src/lib.rs 78.84% <0.00%> (+1.92%) ⬆️
src/batch/src/executor/group_top_n.rs 74.69% <0.00%> (+6.62%) ⬆️
src/source/src/row_id.rs 92.13% <0.00%> (+7.86%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@lmatz lmatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contribution!

@lmatz lmatz merged commit 484b9ab into risingwavelabs:main Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants