Changeset: a3e86cc404af for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a3e86cc404af Added Files: sql/test/in-value-list/Tests/various-in-value-list-queries.stable.err sql/test/in-value-list/Tests/various-in-value-list-queries.stable.out Modified Files: sql/test/in-value-list/Tests/various-in-value-list-queries.sql Branch: in-value-list Log Message:
Copy in-predicate test and results from default to this branch. diffs (truncated from 382 to 300 lines): diff --git a/sql/test/in-value-list/Tests/various-in-value-list-queries.sql b/sql/test/in-value-list/Tests/various-in-value-list-queries.sql --- a/sql/test/in-value-list/Tests/various-in-value-list-queries.sql +++ b/sql/test/in-value-list/Tests/various-in-value-list-queries.sql @@ -58,3 +58,9 @@ select * from foo where i = 40 and i not select * from foo where i = 40 and i in (null) order by i; select * from foo where i = 40 and i in (select bar.i from foo as bar where i in (10, 20)) order by i; + +select * from foo where i = 40 or i in (select bar.i from foo as bar where i in (10, 20)) order by i; + +select * from foo where i = 40 and i not in (select bar.i from foo as bar where i in (10, 20)) order by i; + +select * from foo where i = 40 or i not in (select bar.i from foo as bar where i in (10, 20)) order by i; diff --git a/sql/test/in-value-list/Tests/various-in-value-list-queries.stable.err b/sql/test/in-value-list/Tests/various-in-value-list-queries.stable.err new file mode 100644 --- /dev/null +++ b/sql/test/in-value-list/Tests/various-in-value-list-queries.stable.err @@ -0,0 +1,35 @@ +stderr of test 'various-in-value-list-queries` in directory 'sql/test/in-value-list` itself: + + +# 11:12:26 > +# 11:12:26 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=31520" "--set" "mapi_usock=/var/tmp/mtest-28282/.s.monetdb.31520" "--set" "monet_prompt=" "--forcemito" "--dbpath=/home/aris/Installations/default-env/var/MonetDB/mTests_sql_test_in-value-list" "--set" "embedded_c=true" +# 11:12:26 > + +# builtin opt gdk_dbpath = /home/aris/Installations/default-env/var/monetdb5/dbfarm/demo +# builtin opt gdk_debug = 0 +# builtin opt gdk_vmtrim = no +# builtin opt monet_prompt = > +# builtin opt monet_daemon = no +# builtin opt mapi_port = 50000 +# builtin opt mapi_open = false +# builtin opt mapi_autosense = false +# builtin opt sql_optimizer = default_pipe +# builtin opt sql_debug = 0 +# cmdline opt gdk_nr_threads = 0 +# cmdline opt mapi_open = true +# cmdline opt mapi_port = 31520 +# cmdline opt mapi_usock = /var/tmp/mtest-28282/.s.monetdb.31520 +# cmdline opt monet_prompt = +# cmdline opt gdk_dbpath = /home/aris/Installations/default-env/var/MonetDB/mTests_sql_test_in-value-list +# cmdline opt embedded_c = true +# cmdline opt gdk_debug = 553648138 + +# 11:12:27 > +# 11:12:27 > "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-28282" "--port=31520" +# 11:12:27 > + + +# 11:12:27 > +# 11:12:27 > "Done." +# 11:12:27 > + diff --git a/sql/test/in-value-list/Tests/various-in-value-list-queries.stable.out b/sql/test/in-value-list/Tests/various-in-value-list-queries.stable.out new file mode 100644 --- /dev/null +++ b/sql/test/in-value-list/Tests/various-in-value-list-queries.stable.out @@ -0,0 +1,324 @@ +stdout of test 'various-in-value-list-queries` in directory 'sql/test/in-value-list` itself: + + +# 11:12:26 > +# 11:12:26 > "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" "mapi_open=true" "--set" "mapi_port=31520" "--set" "mapi_usock=/var/tmp/mtest-28282/.s.monetdb.31520" "--set" "monet_prompt=" "--forcemito" "--dbpath=/home/aris/Installations/default-env/var/MonetDB/mTests_sql_test_in-value-list" "--set" "embedded_c=true" +# 11:12:26 > + +# MonetDB 5 server v11.32.0 (hg id: a2909c9af1b7+) +# This is an unreleased version +# Serving database 'mTests_sql_test_in-value-list', using 4 threads +# Compiled for x86_64-pc-linux-gnu/64bit with 128bit integers +# Found 15.551 GiB available main-memory. +# Copyright (c) 1993 - July 2008 CWI. +# Copyright (c) August 2008 - 2019 MonetDB B.V., all rights reserved +# Visit https://www.monetdb.org/ for further information +# Listening for connection requests on mapi:monetdb://aris-MonetDB:31520/ +# Listening for UNIX domain connection requests on mapi:monetdb:///var/tmp/mtest-28282/.s.monetdb.31520 +# SQL catalog created, loading sql scripts once +# loading sql script: 09_like.sql +# loading sql script: 10_math.sql +# loading sql script: 11_times.sql +# loading sql script: 12_url.sql +# loading sql script: 13_date.sql +# loading sql script: 14_inet.sql +# loading sql script: 15_querylog.sql +# loading sql script: 16_tracelog.sql +# loading sql script: 17_temporal.sql +# loading sql script: 18_index.sql +# loading sql script: 20_vacuum.sql +# loading sql script: 21_dependency_views.sql +# loading sql script: 22_clients.sql +# loading sql script: 23_skyserver.sql +# loading sql script: 25_debug.sql +# loading sql script: 26_sysmon.sql +# loading sql script: 27_rejects.sql +# loading sql script: 39_analytics.sql +# loading sql script: 39_analytics_hge.sql +# loading sql script: 40_json.sql +# loading sql script: 40_json_hge.sql +# loading sql script: 41_md5sum.sql +# loading sql script: 45_uuid.sql +# loading sql script: 46_profiler.sql +# loading sql script: 51_sys_schema_extension.sql +# loading sql script: 60_wlcr.sql +# loading sql script: 75_storagemodel.sql +# loading sql script: 76_mosaic.sql +# loading sql script: 80_statistics.sql +# loading sql script: 80_udf.sql +# loading sql script: 80_udf_hge.sql +# loading sql script: 90_generator.sql +# loading sql script: 90_generator_hge.sql +# loading sql script: 99_system.sql +# MonetDB/SQL module loaded + +Ready. + +# 11:12:27 > +# 11:12:27 > "mclient" "-lsql" "-ftest" "-tnone" "-Eutf-8" "-i" "-e" "--host=/var/tmp/mtest-28282" "--port=31520" +# 11:12:27 > + +#create table foo (i int); +#insert into foo values (null), (10), (null), (20), (10), (30), (30), (30), (50), (40), (50); +[ 11 ] +#select * from foo where i in (10, 20, 20, 30, 30) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 10 ] +[ 10 ] +[ 20 ] +[ 30 ] +[ 30 ] +[ 30 ] +#select * from foo where i not in (10, 20, 20, 30, 30) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 40 ] +[ 50 ] +[ 50 ] +#select * from foo where i = 40 or i in (10, 20, 20, 30, 30) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 10 ] +[ 10 ] +[ 20 ] +[ 30 ] +[ 30 ] +[ 30 ] +[ 40 ] +#select * from foo where i = 40 or i not in (10, 20, 20, 30, 30) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 40 ] +[ 50 ] +[ 50 ] +#select * from foo where i = 40 and i in (10, 20, 20, 30, 30) order by i; +% sys.foo # table_name +% i # name +% int # type +% 1 # length +#select * from foo where i = 40 and i not in (10, 20, 20, 30, 30) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 40 ] +#select * from foo where i in (10, 20, 20, 30, 30) and i in (20, 30, 40) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 20 ] +[ 30 ] +[ 30 ] +[ 30 ] +#select * from foo where i not in (10, 20, 20, 30, 30) and i not in (20, 30, 40) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 50 ] +[ 50 ] +#select * from foo where i in (10, 20, 20, 30, 30) and i not in (20, 30, 40) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 10 ] +[ 10 ] +#select * from foo where i not in (10, 20, 20, 30, 30) and i in (20, 30, 40) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 40 ] +#select * from foo where i in (10, 20, 20, 30, 30) or i in (20, 30, 40) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 10 ] +[ 10 ] +[ 20 ] +[ 30 ] +[ 30 ] +[ 30 ] +[ 40 ] +#select * from foo where i not in (10, 20, 20, 30, 30) or i not in (20, 30, 40) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 10 ] +[ 10 ] +[ 40 ] +[ 50 ] +[ 50 ] +#select * from foo where i in (10, 20, 20, 30, 30) or i not in (20, 30, 40) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 10 ] +[ 10 ] +[ 20 ] +[ 30 ] +[ 30 ] +[ 30 ] +[ 50 ] +[ 50 ] +#select * from foo where i not in (10, 20, 20, 30, 30) or i in (20, 30, 40) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 20 ] +[ 30 ] +[ 30 ] +[ 30 ] +[ 40 ] +[ 50 ] +[ 50 ] +#select * from foo where i = 40 and i not in (10, 20 + 20, 30) order by i; +% sys.foo # table_name +% i # name +% int # type +% 1 # length +#select * from foo where i = 40 and i in (2*10 + 10, null, i - 1, i, i + 1, null) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 40 ] +#select * from foo where i = 40 and i not in (2*10 + 10, null, i - 1, i, i + 1, null) order by i; +% sys.foo # table_name +% i # name +% int # type +% 1 # length +#select * from foo where i = 40 and (i + 10) in (2*10 + 10, null, i - 1, i, i + 10, null) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 40 ] +#select * from foo where i = 40 and (i + 10) not in (2*10 + 10, null, i - 1, i, i + 10, null) order by i; +% sys.foo # table_name +% i # name +% int # type +% 1 # length +#select * from foo where i = 40 or i not in (10, 20 + 20, 30) order by i; +% sys.foo # table_name +% i # name +% int # type +% 2 # length +[ 20 ] +[ 40 ] +[ 50 ] +[ 50 ] +#select * from foo where i = 40 or i in (2*10 + 10, null, i - 1, i, i + 1, null) order by i; +% .foo # table_name +% i # name +% int # type +% 2 # length +[ 10 ] +[ 10 ] +[ 20 ] +[ 30 ] +[ 30 ] +[ 30 ] +[ 40 ] +[ 50 ] +[ 50 ] +#select * from foo where i = 40 or i not in (2*10 + 10, null, i - 1, i, i + 1, null) order by i; +% .foo # table_name +% i # name _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list