Changeset: 8cdd1ac4ef14 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8cdd1ac4ef14
Modified Files:
        gdk/CMakeLists.txt
        gdk/gdk.h
        gdk/gdk_bat.c
        gdk/gdk_batop.c
        gdk/gdk_join.c
        monetdb5/modules/kernel/aggr.c
        sql/scripts/80_statistics.sql
Branch: cnting_sketches
Log Message:

Merge with pp_hashjoin branch.


diffs (truncated from 22373 to 300 lines):

diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0.  If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+# file, You can obtain one at https://mozilla.org/MPL/2.0/.
 #
 # For copyright information, see the file debian/copyright.
 #]]
diff --git a/Config.cmake.in b/Config.cmake.in
--- a/Config.cmake.in
+++ b/Config.cmake.in
@@ -3,7 +3,7 @@
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0.  If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+# file, You can obtain one at https://mozilla.org/MPL/2.0/.
 #
 # For copyright information, see the file debian/copyright.
 #]]
diff --git a/HOWTO.txt b/HOWTO.txt
deleted file mode 100644
--- a/HOWTO.txt
+++ /dev/null
@@ -1,92 +0,0 @@
-1. To use OAHash for joins:
-
-select debug(524288); -- useOAHash == 1U<<19
-select debug(537395200); -- forcemito & useOAHash == 1U<<19 & 1U<<29
-
-2. Basic query:
-
-drop table if exists l;
-drop table if exists r;
-create table l (l1 int, l2 int, l3 int);
-create table r (r1 int, r2 int, r3 int);
-create table s (s1 int, s2 int, s3 int);
-
-insert into l values
-  (42, 44, 11),
-  (41, 45, 22),
-  (43, 42, 33);
-
-insert into r values
-  (41, 44, 10),
-  (42, 44, 20),
-  (43, 44, 30),
-  (41, 45, 40),
-  (43, 45, 50),
-  (43, 44, 60),
-  (42, 44, 70),
-  (42, 44, 80);
-
-insert into s values
-  (41, 44, 10),
-  (42, 44, 20),
-  (34, 44, 30),
-  (41, 45, 40),
-  (34, 45, 50),
-  (34, 44, 60),
-  (42, 44, 70),
-  (42, 44, 80);
-
-select r1, count(l1), sum(s1)  from l, r, s where r1 = l1 and r1 = s1 group by 
r1;
-
-3. TPC-H query:
-3.1 load your own tpc-h data, probably an SF smaller than 1GB
-3.2 remove the keys:
-
-alter table customer rename to customer_key;
-alter table lineitem rename to lineitem_key;
-alter table nation   rename to nation_key;
-alter table orders   rename to orders_key;
-alter table part     rename to part_key;
-alter table partsupp rename to partsupp_key;
-alter table region   rename to region_key;
-alter table supplier rename to supplier_key;
-
-create table customer (like customer_key);
-create table lineitem (like lineitem_key);
-create table nation   (like nation_key);
-create table orders   (like orders_key);
-create table part     (like part_key);
-create table partsupp (like partsupp_key);
-create table region   (like region_key);
-create table supplier (like supplier_key);
-
-insert into customer select * from customer_key;
-insert into lineitem select * from lineitem_key;
-insert into nation   select * from nation_key;
-insert into orders   select * from orders_key;
-insert into part     select * from part_key;
-insert into partsupp select * from partsupp_key;
-insert into region   select * from region_key;
-insert into supplier select * from supplier_key;
-
-3.3 run 03.sql:
-
-select
-       l_orderkey
-       , sum(l_extendedprice * (1 - l_discount)) as revenue
-       , o_orderdate
-       , o_shippriority
-from
-       lineitem, orders, customer
-where  
-       l_orderkey = o_orderkey
-       and c_custkey = o_custkey
-       and c_mktsegment = 'BUILDING'
-       and o_orderdate < date '1995-03-15'
-       and l_shipdate > date '1995-03-15'
-group by
-       l_orderkey, o_orderdate, o_shippriority
-order by
-       revenue desc, o_orderdate
-limit 10
-;
diff --git a/LICENSE b/LICENSE
--- a/LICENSE
+++ b/LICENSE
@@ -357,7 +357,7 @@ Exhibit A - Source Code Form License Not
 
   This Source Code Form is subject to the terms of the Mozilla Public
   License, v. 2.0. If a copy of the MPL was not distributed with this
-  file, You can obtain one at http://mozilla.org/MPL/2.0/.
+  file, You can obtain one at https://mozilla.org/MPL/2.0/.
 
 If it is not possible or desirable to put the notice in a particular
 file, then You may include the notice in a location (such as a LICENSE
diff --git a/MonetDB.spec b/MonetDB.spec
--- a/MonetDB.spec
+++ b/MonetDB.spec
@@ -2,7 +2,7 @@
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0.  If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+# file, You can obtain one at https://mozilla.org/MPL/2.0/.
 #
 # For copyright information, see the file debian/copyright.
 
diff --git a/NT/mkodbcwxs.py b/NT/mkodbcwxs.py
--- a/NT/mkodbcwxs.py
+++ b/NT/mkodbcwxs.py
@@ -2,7 +2,7 @@
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0.  If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+# file, You can obtain one at https://mozilla.org/MPL/2.0/.
 #
 # For copyright information, see the file debian/copyright.
 
diff --git a/NT/mksqlwxs.py b/NT/mksqlwxs.py
--- a/NT/mksqlwxs.py
+++ b/NT/mksqlwxs.py
@@ -2,7 +2,7 @@
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0.  If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+# file, You can obtain one at https://mozilla.org/MPL/2.0/.
 #
 # For copyright information, see the file debian/copyright.
 
diff --git a/README.rst b/README.rst
--- a/README.rst
+++ b/README.rst
@@ -25,7 +25,7 @@ __ DA_
 .. _solutions: https://www.monetdbsolutions.com
 __ solutions_
 
-.. _mpl: http://mozilla.org/MPL/2.0/
+.. _mpl: https://mozilla.org/MPL/2.0/
 __ mpl_
 
 .. _MonetDB: https://dev.monetdb.org/hg/MonetDB/
@@ -149,7 +149,7 @@ SPDX-License-Identifier: MPL-2.0
 
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0.  If a copy of the MPL was not distributed with this
-file, You can obtain one at http://mozilla.org/MPL/2.0/.
+file, You can obtain one at https://mozilla.org/MPL/2.0/.
 
 Copyright 2024 - 2026 MonetDB Foundation;
 Copyright August 2008 - 2023 MonetDB B.V.;
diff --git a/TODO.md b/TODO.md
deleted file mode 100644
--- a/TODO.md
+++ /dev/null
@@ -1,56 +0,0 @@
-Pipeline issues we should look into later:
-
-1. This perfectly normal query triggers a MALException:
-
-```
-sql>select c_name, count(n_name) from customer, nation where c_nationkey = 
n_nationkey group by c_name limit 5;
-MALException:chkFlow:user.main setLifeSpan nested dataflow blocks not allowed
-```
-
-2. The following (accidental) query produces a "nested dataflow blocks" error 
because the `language.pipeline()` block for the semijoin is not properly closed:
-
-```
-sql> select r_name, count(*) from nation, region where n_nationkey = 
r_regionkey group by r_name order by r_name;
-MALException:chkFlow:user.main setLifeSpan nested dataflow blocks not allowed
-sql>plan select r_name, count(*) from nation, region where n_nationkey = 
r_regionkey group by r_name order by r_name;
-+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-| rel                                                                          
                                                                                
                   |
-+=================================================================================================================================================================================+
-| project (                                                                    
                                                                                
                   |
-| | project (                                                                  
                                                                                
                   |
-| | | select (                                                                 
                                                                                
                   |
-| | | |  start  || group by (                                                  
                                                                                
                   |
-| | | | |  start semijoin (                                                    
                                                                                
                   |
-| | | | | | table("sys"."region") [ "region"."r_regionkey" NOT NULL UNIQUE 
NUNIQUES 5.000000 HASHCOL , "region"."r_name" NOT NULL UNIQUE NUNIQUES 5.000000 
] L PARTITION COUNT 5, |
-| | | | | | table("sys"."nation") [ "nation"."n_nationkey" NOT NULL UNIQUE 
NUNIQUES 25.000000 HASHCOL  ] COUNT 25                                          
                       |
-| | | | | ) [ ("nation"."n_nationkey" NOT NULL UNIQUE NUNIQUES 25.000000 
HASHCOL ) = ("region"."r_regionkey" NOT NULL UNIQUE NUNIQUES 5.000000 HASHCOL ) 
] L PARTITION COUNT 5    |
-| | | | ) [ "region"."r_name" NOT NULL UNIQUE NUNIQUES 5.000000 ] [ 
"region"."r_name" NOT NULL UNIQUE NUNIQUES 5.000000, "sys"."count"() NOT NULL 
as "%1"."%1" ] COUNT 5          |
-| | | ) [ ("%1"."%1" NOT NULL) != (bigint(18) "0") ] COUNT 5                   
                                                                                
                   |
-| | ) [ "region"."r_name" NOT NULL UNIQUE NUNIQUES 5.000000, "%1"."%1" NOT 
NULL ] COUNT 5                                                                  
                       |
-| ) [ "region"."r_name" NOT NULL UNIQUE NUNIQUES 5.000000, "%1"."%1" NOT NULL 
] [ "region"."r_name" ASC NOT NULL UNIQUE NUNIQUES 5.000000 ] COUNT 5           
                    |
-+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
-```
-
-3. The UNION query in `sql/test/Tests/blob_query.test` fails in 
`aproject_(str)` (`monetdb5/modules/mal/pp_algebra.c`:2074) because the BAT `g` 
contains invalid values in its tail:
-
-```
-(gdb) p BATprint(THRdata[0], g)
-#--------------------------#
-# h    t  # name
-# void oid  # type
-#--------------------------#
-[ 0@0, 13672292666396491197@0  ]
-```
-
-4. `sql/test/BugTracker-2013/Tests/aggregates-typing-issues.Bug-3277.test`, 
query `select cast (prod( prob1 ) as bigint) from mtcars2` returns different 
values in different `mserver5` sessions when `--forcemito` is used (e.g. by 
Mtest.py).  Without `--forcemito`, the query gives the correct result. So, 
probably some errors in the pipeline code for the `prod` aggregate.
-
-5. the `stddev_pop` in the following query triggers a crash:
-```
-explain select l_discount, stddev_pop(l_discount) from lineitem, supplier 
where l_suppkey = s_suppkey group by l_discount limit 5;
-```
-
-6. this query triggers a crash in `stmt_pp_aggr()` because `grp` is NULL:
-```
-select avg(r_regionkey) from region;
-```
-
diff --git a/buildtools/CMakeLists.txt b/buildtools/CMakeLists.txt
--- a/buildtools/CMakeLists.txt
+++ b/buildtools/CMakeLists.txt
@@ -3,7 +3,7 @@
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0.  If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+# file, You can obtain one at https://mozilla.org/MPL/2.0/.
 #
 # For copyright information, see the file debian/copyright.
 #]]
diff --git a/buildtools/conf/CMakeLists.txt b/buildtools/conf/CMakeLists.txt
--- a/buildtools/conf/CMakeLists.txt
+++ b/buildtools/conf/CMakeLists.txt
@@ -3,7 +3,7 @@
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0.  If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+# file, You can obtain one at https://mozilla.org/MPL/2.0/.
 #
 # For copyright information, see the file debian/copyright.
 #]]
diff --git a/buildtools/conf/Maddlog b/buildtools/conf/Maddlog
--- a/buildtools/conf/Maddlog
+++ b/buildtools/conf/Maddlog
@@ -5,7 +5,7 @@
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0.  If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+# file, You can obtain one at https://mozilla.org/MPL/2.0/.
 #
 # For copyright information, see the file debian/copyright.
 
diff --git a/buildtools/conf/license.rtf b/buildtools/conf/license.rtf
--- a/buildtools/conf/license.rtf
+++ b/buildtools/conf/license.rtf
@@ -158,7 +158,7 @@
 
\pard\plain\ltrpar\ql\sb440\sa60\s21\itap0{\s21\f0\fs28\b\lang1033{\*\listtag0}\abinodiroverride\ltrch
 Exhibit A - Source Code Form License 
Notice}{\s21\f0\fs28\b\lang1033{\*\listtag0}\par}
 \pard\plain\ltrpar\ql\li1440\ri1440\sa120\s2\itap0
 \sect\sectd\sbknone\colsx360\headery0\footery0\pgncont\ltrsect
-\pard\plain\ltrpar\ql\s28\itap0{\s28\f1\fs24\lang1033{\*\listtag0}\abinodiroverride\ltrch
 This Source Code Form is subject to the terms of the Mozilla Public License, 
v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain 
one at }{\field{\*\fldinst {\f1\fs24\lang1033{\*\listtag0} HYPERLINK 
"http://mozilla.org/MPL/2.0/"}}{\*\fldrslt{\s28\f1\fs24\lang1033{\*\listtag0}http://mozilla.org/MPL/2.0/}}}{\s28\f1\fs24\lang1033{\*\listtag0}.}{\s28\f1\fs24\lang1033{\*\listtag0}\par}
+\pard\plain\ltrpar\ql\s28\itap0{\s28\f1\fs24\lang1033{\*\listtag0}\abinodiroverride\ltrch
 This Source Code Form is subject to the terms of the Mozilla Public License, 
v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain 
one at }{\field{\*\fldinst {\f1\fs24\lang1033{\*\listtag0} HYPERLINK 
"https://mozilla.org/MPL/2.0/"}}{\*\fldrslt{\s28\f1\fs24\lang1033{\*\listtag0}https://mozilla.org/MPL/2.0/}}}{\s28\f1\fs24\lang1033{\*\listtag0}.}{\s28\f1\fs24\lang1033{\*\listtag0}\par}
 
\pard\plain\ltrpar\ql\s28\itap0{\s28\f0\fs24\lang1033{\*\listtag0}\abinodiroverride\ltrch
 If it is not possible or desirable to put the notice in a particular file, 
then You may include the notice in a location (such as a LICENSE file in a 
relevant directory) where a recipient would be likely to look for such a 
notice.}{\s28\f0\fs24\lang1033{\*\listtag0}\par}
 
\pard\plain\ltrpar\ql\s28\itap0{\s28\f0\fs24\lang1033{\*\listtag0}\abinodiroverride\ltrch
 You may add additional accurate notices of copyright 
ownership.}{\s28\f0\fs24\lang1033{\*\listtag0}\par}
 
\pard\plain\ltrpar\ql\sb440\sa60\s21\itap0{\s21\f0\fs28\b\lang1033{\*\listtag0}\abinodiroverride\ltrch
 Exhibit B - \uc1\u8220\'93Incompatible With Secondary Licenses\uc1\u8221\'94 
Notice}{\s21\f0\fs28\b\lang1033{\*\listtag0}\par}
diff --git a/buildtools/conf/website.html b/buildtools/conf/website.html
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to