Changeset: 080a955d803d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=080a955d803d
Added Files:
        debian/monetdb-client-tools.docs
        debian/monetdb5-server.docs
        sql/backends/monet5/Tests/pyapi08.sql.orig
        sql/backends/monet5/Tests/pyapi08.stable.err
        sql/backends/monet5/Tests/pyapi08.stable.out
Modified Files:
        MonetDB.spec
        NT/installer32/MonetDB5-SQL-Installer.vdproj
        NT/installer64/MonetDB5-SQL-Installer.vdproj
        NT/monetdb_config.h.in
        clients/mapiclient/Makefile.ag
        clients/mapiclient/tomograph.c
        configure.ag
        debian/monetdb5-sql.docs
        gdk/gdk_group.c
        gdk/gdk_join.c
        gdk/gdk_logger.c
        gdk/gdk_search.c
        gdk/gdk_select.c
        gdk/gdk_storage.c
        gdk/gdk_unique.c
        monetdb5/modules/mal/tablet.c
        monetdb5/optimizer/opt_remap.c
        sql/Makefile.ag
        sql/backends/monet5/Tests/pyapi08.sql
        sql/backends/monet5/Tests/rapi13.sql
        sql/backends/monet5/sql.c
        sql/server/sql_scan.c
        sql/storage/bat/bat_storage.c
        sql/storage/bat/bat_table.c
        sql/storage/sql_storage.h
        sql/storage/store.c
        sql/test/BugTracker-2015/Tests/crash.Bug-3736.sql
        sql/test/BugTracker-2015/Tests/crash.Bug-3736.stable.err
        sql/test/BugTracker-2015/Tests/crash.Bug-3736.stable.out
        sql/test/copy/Tests/nonutf8.sql
        sql/test/copy/Tests/nonutf8.stable.err
        sql/test/copy/Tests/nonutf8.stable.out
        sql/test/pg_regress/Tests/float8.sql
        sql/test/pg_regress/Tests/float8.stable.err
        sql/test/pg_regress/Tests/float8.stable.err.Windows
        sql/test/pg_regress/Tests/float8.stable.out
        sql/test/pg_regress/Tests/float8.stable.out.Windows
        sql/test/pg_regress/Tests/strings.sql
        sql/test/pg_regress/Tests/strings.stable.err
        sql/test/pg_regress/Tests/strings.stable.err.int128
        sql/test/pg_regress/Tests/strings.stable.out
        tools/mserver/Makefile.ag
        vertoo.config
Branch: pyapi
Log Message:

Merge with default, fixes pyapi08.sql.


diffs (truncated from 2817 to 300 lines):

diff --git a/MonetDB.spec b/MonetDB.spec
--- a/MonetDB.spec
+++ b/MonetDB.spec
@@ -265,6 +265,9 @@ tools can be used to monitor the MonetDB
 %{_bindir}/stethoscope
 %{_bindir}/tachograph
 %{_bindir}/tomograph
+%dir %{_datadir}/doc/MonetDB-client-tools
+%docdir %{_datadir}/doc/MonetDB-client-tools
+%{_datadir}/doc/MonetDB-client-tools/*
 
 %package client-devel
 Summary: MonetDB - Monet Database Management System Client Programs
@@ -664,6 +667,9 @@ fi
 %exclude %{_libdir}/monetdb5/lib_sql.so
 %{_libdir}/monetdb5/*.so
 %doc %{_mandir}/man1/mserver5.1.gz
+%dir %{_datadir}/doc/MonetDB
+%docdir %{_datadir}/doc/MonetDB
+%{_datadir}/doc/MonetDB/*
 
 %package -n MonetDB5-server-hugeint
 Summary: MonetDB - 128-bit integer support for MonetDB5-server
@@ -763,15 +769,9 @@ systemd-tmpfiles --create %{_sysconfdir}
 %{_libdir}/monetdb5/sql*.mal
 %doc %{_mandir}/man1/monetdb.1.gz
 %doc %{_mandir}/man1/monetdbd.1.gz
-%if (0%{?fedora} >= 20)
 %dir %{_datadir}/doc/MonetDB-SQL
 %docdir %{_datadir}/doc/MonetDB-SQL
 %{_datadir}/doc/MonetDB-SQL/*
-%else
-%dir %{_datadir}/doc/MonetDB-SQL-%{version}
-%docdir %{_datadir}/doc/MonetDB-SQL-%{version}
-%{_datadir}/doc/MonetDB-SQL-%{version}/*
-%endif
 
 %package SQL-server5-hugeint
 Summary: MonetDB5 128 bit integer (hugeint) support for SQL
@@ -961,10 +961,6 @@ rm -f %{buildroot}%{_libdir}/monetdb5/*.
 # internal development stuff
 rm -f %{buildroot}%{_bindir}/Maddlog
 
-%if 0%{?fedora} >= 20
-mv %{buildroot}%{_datadir}/doc/MonetDB-SQL-%{version} 
%{buildroot}%{_datadir}/doc/MonetDB-SQL
-%endif
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
diff --git a/NT/installer32/MonetDB5-SQL-Installer.vdproj 
b/NT/installer32/MonetDB5-SQL-Installer.vdproj
--- a/NT/installer32/MonetDB5-SQL-Installer.vdproj
+++ b/NT/installer32/MonetDB5-SQL-Installer.vdproj
@@ -2390,7 +2390,7 @@
             }
             
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_667BD650736E43C9A8B6899179FA0CAA"
             {
-            "SourcePath" = 
"8:share\\doc\\MonetDB-SQL-11.22.0\\dump-restore.txt"
+            "SourcePath" = "8:share\\doc\\MonetDB-SQL\\dump-restore.txt"
             "TargetName" = "8:dump-restore.txt"
             "Tag" = "8:"
             "Folder" = "8:_6C21CE578F0941D09FDD9951A229FF37"
@@ -2970,7 +2970,7 @@
             }
             
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_A9DB6CF8297A4BEEAF7A6D4958A4B0D6"
             {
-            "SourcePath" = 
"8:share\\doc\\MonetDB-SQL-11.22.0\\dump-restore.html"
+            "SourcePath" = "8:share\\doc\\MonetDB-SQL\\dump-restore.html"
             "TargetName" = "8:dump-restore.html"
             "Tag" = "8:"
             "Folder" = "8:_6C21CE578F0941D09FDD9951A229FF37"
@@ -4194,7 +4194,7 @@
                                 {
                                     
"{9EF0B969-E518-4E46-987F-47570745A589}:_6C21CE578F0941D09FDD9951A229FF37"
                                     {
-                                    "Name" = "8:MonetDB-SQL-11.22.0"
+                                    "Name" = "8:MonetDB-SQL"
                                     "AlwaysCreate" = "11:FALSE"
                                     "Condition" = "8:"
                                     "Transitive" = "11:FALSE"
diff --git a/NT/installer64/MonetDB5-SQL-Installer.vdproj 
b/NT/installer64/MonetDB5-SQL-Installer.vdproj
--- a/NT/installer64/MonetDB5-SQL-Installer.vdproj
+++ b/NT/installer64/MonetDB5-SQL-Installer.vdproj
@@ -2390,7 +2390,7 @@
             }
             
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_667BD650736E43C9A8B6899179FA0CAA"
             {
-            "SourcePath" = 
"8:share\\doc\\MonetDB-SQL-11.22.0\\dump-restore.txt"
+            "SourcePath" = "8:share\\doc\\MonetDB-SQL\\dump-restore.txt"
             "TargetName" = "8:dump-restore.txt"
             "Tag" = "8:"
             "Folder" = "8:_6C21CE578F0941D09FDD9951A229FF37"
@@ -2970,7 +2970,7 @@
             }
             
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_A9DB6CF8297A4BEEAF7A6D4958A4B0D6"
             {
-            "SourcePath" = 
"8:share\\doc\\MonetDB-SQL-11.22.0\\dump-restore.html"
+            "SourcePath" = "8:share\\doc\\MonetDB-SQL\\dump-restore.html"
             "TargetName" = "8:dump-restore.html"
             "Tag" = "8:"
             "Folder" = "8:_6C21CE578F0941D09FDD9951A229FF37"
@@ -4194,7 +4194,7 @@
                                 {
                                     
"{9EF0B969-E518-4E46-987F-47570745A589}:_6C21CE578F0941D09FDD9951A229FF37"
                                     {
-                                    "Name" = "8:MonetDB-SQL-11.22.0"
+                                    "Name" = "8:MonetDB-SQL"
                                     "AlwaysCreate" = "11:FALSE"
                                     "Condition" = "8:"
                                     "Transitive" = "11:FALSE"
diff --git a/NT/monetdb_config.h.in b/NT/monetdb_config.h.in
--- a/NT/monetdb_config.h.in
+++ b/NT/monetdb_config.h.in
@@ -60,6 +60,9 @@
 /* location where binaries are installed */
 /* #undef BINDIR */
 
+/* read-only architecture-independent data */
+#define DATA_DIR PREFIX "\\share"
+
 /* Directory separator */
 #define DIR_SEP '\\'
 
diff --git a/clients/mapiclient/tomograph.c b/clients/mapiclient/tomograph.c
--- a/clients/mapiclient/tomograph.c
+++ b/clients/mapiclient/tomograph.c
@@ -450,8 +450,8 @@ usageTomograph(void)
        fprintf(stderr, "  -p | --port=<portnr>\n");
        fprintf(stderr, "  -h | --host=<hostname>\n");
        fprintf(stderr, "  -T | --title=<plot title>\n");
-       fprintf(stderr, "  -r | --range=<starttime>-<endtime>[ms,s] \n");
-       fprintf(stderr, "  -i | --input=<profiler event file > \n");
+       fprintf(stderr, "  -r | --range=<starttime>-<endtime>[ms,s]\n");
+       fprintf(stderr, "  -i | --input=<profiler event file >\n");
        fprintf(stderr, "  -o | --output=<dir/file prefix > (default 
'cache/<dbname>'\n");
        fprintf(stderr, "  -b | --beat=<delay> in milliseconds (default 
5000)\n");
        fprintf(stderr, "  -A | --atlas=<number> maximum number of queries 
(default 1)\n");
@@ -868,7 +868,7 @@ showcpu(void)
                        prev = i;
                }
        if( cpus)
-               fprintf(gnudata,"  plot 0 notitle with lines\n unset 
for[i=1:%d] object i \n",object);
+               fprintf(gnudata,"  plot 0 notitle with lines\n unset 
for[i=1:%d] object i\n",object);
        fprintf(gnudata, "set border\n");
        fprintf(gnudata, "unset yrange\n");
        fprintf(gnudata, "unset ytics\n");
@@ -930,14 +930,14 @@ showio(void)
        fprintf(gnudata, "plot \"%s_%02d.dat\" using 1:($4/%d.0) notitle with 
dots fs solid linecolor rgb \"gray\" ,\\\n", basefile,  atlaspage, b);
        fprintf(gnudata, "\"%s_%02d.dat\" using ($1+4):($5/%d.0) notitle with 
dots solid linecolor rgb \"red\"\n", basefile,  atlaspage, b);
        //fprintf(gnudata, "\"%s_%02d.dat\" using ($1+8):($6/%d.0) notitle with 
dots linecolor rgb \"green\", \\\n", basefile,  atlaspage, b);
-       //fprintf(gnudata, "\"%s_%02d.dat\" using ($1+12):($7/%d.0) notitle 
with dots linecolor rgb \"purple\"  \n", basefile,  atlaspage, b);
+       //fprintf(gnudata, "\"%s_%02d.dat\" using ($1+12):($7/%d.0) notitle 
with dots linecolor rgb \"purple\"\n", basefile,  atlaspage, b);
 #else
 /* this is a slightly modified version that produces decent results on
  * all platforms */
        fprintf(gnudata, "plot \"%s_%02d.dat\" using 1:($4/%d.0) notitle with 
dots linecolor rgb \"gray\" ,\\\n", basefile,  atlaspage, b);
        fprintf(gnudata, "\"%s_%02d.dat\" using ($1+4):($5/%d.0) notitle with 
dots linecolor rgb \"red\"\n", basefile,  atlaspage, b);
        //fprintf(gnudata, "\"%s_%02d.dat\" using ($1+8):($6/%d.0) notitle with 
dots linecolor rgb \"green\", \\\n", basefile,  atlaspage, b);
-       //fprintf(gnudata, "\"%s_%02d.dat\" using ($1+12):($7/%d.0) notitle 
with dots linecolor rgb \"purple\"  \n", basefile,  atlaspage, b);
+       //fprintf(gnudata, "\"%s_%02d.dat\" using ($1+12):($7/%d.0) notitle 
with dots linecolor rgb \"purple\"\n", basefile,  atlaspage, b);
 #endif
        fprintf(gnudata, "unset y2label\n");
        fprintf(gnudata, "unset y2tics\n");
@@ -1184,6 +1184,23 @@ updatecolormap(int idx)
 /* gnuplot defaults */
 static int height = 160;
 
+static char *
+findlogo(void)
+{
+#ifdef _MSC_VER
+       static char buf[512];
+       int i;
+
+       snprintf(buf, sizeof(buf), "%s", DATA_DIR 
"\\doc\\MonetDB\\monetdblogo.png");
+       for (i = 0; buf[i]; i++)
+               if (buf[i] == '\\')
+                       buf[i] = '/';
+       return buf;
+#else
+       return DATA_DIR "/doc/MonetDB/monetdblogo.png";
+#endif
+}
+
 static void
 gnuplotheader(char *filename)
 {
@@ -1204,8 +1221,7 @@ gnuplotheader(char *filename)
        fprintf(gnudata,"unset border\n");
        fprintf(gnudata,"unset xtics\n");
        fprintf(gnudata,"unset ytics\n");
-       // REPLACE THE HARDCODED NAME
-       fprintf(gnudata,"plot \"/ufs/mk/monetdb-final.png\" binary filetype=png 
dx=0.5 dy=0.5 notitle with rgbimage\n");
+       fprintf(gnudata,"plot \"%s\" binary filetype=png dx=0.5 dy=0.5 notitle 
with rgbimage\n", findlogo());
        fprintf(gnudata,"unset title\n");
 
 }
@@ -1272,7 +1288,7 @@ createTomogram(void)
        height = (cpus+1) * 2 * h;
        fprintf(gnudata, "set yrange [0:%d]\n", height);
        fprintf(gnudata, "set ylabel \"worker threads\"\n");
-       fprintf(gnudata, "set key right \n");
+       fprintf(gnudata, "set key right\n");
        fprintf(gnudata, "unset colorbox\n");
        fprintf(gnudata, "unset title\n");
 
@@ -1312,9 +1328,10 @@ createTomogram(void)
                                        dumpbox(i);
                                // always show a start line
                                if ( box[i].clkend - box[i].clkstart < w/200.0)
-                                       fprintf(gnudata, "set object %d 
rectangle from "LLFMT".0, %d.0 to %4.2f, %d.0 fillcolor rgb \"%s\" fillstyle 
solid 1.0 \n",
-                                               object++, box[i].clkstart, 
(rowoffset + box[i].row)  * 2 * h, box[i].clkstart+2.0, (rowoffset + 
box[i].row) * 2 * h + h, colors[box[i].color].col);
-                                       fprintf(gnudata, "set object %d 
rectangle from "LLFMT".0, %d.0 to "LLFMT".0, %d fillcolor rgb \"%s\" fillstyle 
solid 1.0 \n",
+                                       fprintf(gnudata, "set object %d 
rectangle from "LLFMT".0, %d.0 to "LLFMT".0, %d.0 fillcolor rgb \"%s\" 
fillstyle solid 1.0\n",
+                                               object++, box[i].clkstart, 
(rowoffset + box[i].row)  * 2 * h, box[i].clkstart+2, (rowoffset + box[i].row) 
* 2 * h + h, colors[box[i].color].col);
+                               else
+                                       fprintf(gnudata, "set object %d 
rectangle from "LLFMT".0, %d.0 to "LLFMT".0, %d.0 fillcolor rgb \"%s\" 
fillstyle solid 1.0\n",
                                                object++, box[i].clkstart, 
(rowoffset + box[i].row)  * 2 * h, box[i].clkend, (rowoffset + box[i].row)  * 2 
* h + h, colors[box[i].color].col);
                                break;
                        case MDB_PING:
diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -3113,6 +3113,8 @@ fi
 Qdatadir="$datadir"
 Xdatadir="`$translatepath "$datadir"`"
 QXdatadir="`echo "$Xdatadir" | sed 's/\\\\/\\\\\\\\/g'`"
+eval "Edatadir=${Xdatadir}"
+QEdatadir="`echo "$Edatadir" | sed 's/\\\\/\\\\\\\\/g'`"
 AC_SUBST(Qdatadir)
 AC_SUBST(Xdatadir)
 AC_SUBST(QXdatadir)
@@ -3148,6 +3150,7 @@ AC_SUBST(QSOURCE)
 AC_SUBST(XSOURCE)
 AC_SUBST(QXSOURCE)
 AC_DEFINE_UNQUOTED(LOCALSTATEDIR,"$QElocalstatedir",[modifiable single-machine 
data])
+AC_DEFINE_UNQUOTED(DATA_DIR,"$QEdatadir",[read-only architecture-independent 
data])
 AC_DEFINE_UNQUOTED(BINDIR,"$QEbindir",[location where binaries are installed])
 
 dnl  On Solaris, libxml2 enables threading only when _REENTRANT, __MT__
diff --git a/debian/monetdb-client-tools.docs b/debian/monetdb-client-tools.docs
new file mode 100644
--- /dev/null
+++ b/debian/monetdb-client-tools.docs
@@ -0,0 +1,1 @@
+debian/tmp/usr/share/doc/MonetDB-client-tools/*
diff --git a/debian/monetdb5-server.docs b/debian/monetdb5-server.docs
new file mode 100644
--- /dev/null
+++ b/debian/monetdb5-server.docs
@@ -0,0 +1,1 @@
+debian/tmp/usr/share/doc/MonetDB/*
diff --git a/debian/monetdb5-sql.docs b/debian/monetdb5-sql.docs
--- a/debian/monetdb5-sql.docs
+++ b/debian/monetdb5-sql.docs
@@ -1,1 +1,1 @@
-debian/tmp/usr/share/doc/MonetDB-SQL-*/*
+debian/tmp/usr/share/doc/MonetDB-SQL/*
diff --git a/gdk/gdk_group.c b/gdk/gdk_group.c
--- a/gdk/gdk_group.c
+++ b/gdk/gdk_group.c
@@ -778,7 +778,7 @@ BATgroup_internal(BAT **groups, BAT **ex
                                  e ? BATgetId(e) : "NULL", e ? BATcount(e) : 0,
                                  h ? BATgetId(h) : "NULL", h ? BATcount(h) : 0,
                                  subsorted);
-               if ((parent = VIEWtparent(b)) != 0) {
+               if (b->T->hash == NULL && (parent = VIEWtparent(b)) != 0) {
                        /* b is a view on another bat (b2 for now).
                         * calculate the bounds [lo, hi) in the parent
                         * that b uses */
diff --git a/gdk/gdk_join.c b/gdk/gdk_join.c
--- a/gdk/gdk_join.c
+++ b/gdk/gdk_join.c
@@ -1012,6 +1012,9 @@ mergejoin(BAT *r1, BAT *r2, BAT *l, BAT 
 
        rcandorig = rcand;
        rstartorig = rstart;
+
+       if (sl)
+               r1->tdense = sl->tdense;
        while (lcand ? lcand < lcandend : lstart < lend) {
                if (!nil_on_miss && !must_match && lscan > 0) {
                        /* If l is sorted (lscan > 0), we look at the
@@ -1822,6 +1825,9 @@ hashjoin(BAT *r1, BAT *r2, BAT *l, BAT *
        r2->trevsorted = 0;
        r2->tdense = 0;
 
+       if (sl) 
+               r1->tdense = sl->tdense;
+
        if (lstart == lend || (!nil_on_miss && rstart == rend)) {
                /* nothing to do: there are no matches */
                if (must_match && lstart < lend) {
@@ -1839,12 +1845,26 @@ hashjoin(BAT *r1, BAT *r2, BAT *l, BAT *
                return GDK_SUCCEED;
        }
 
+       rl = BUNfirst(r);
        if (VIEWtparent(r)) {
                BAT *b = BBPdescriptor(-VIEWtparent(r));
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to