Changeset: 4ba661602ff4 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/4ba661602ff4
Modified Files:
        clients/Tests/MAL-signatures-hge.test
        clients/Tests/MAL-signatures.test
        clients/Tests/exports.stable.out
        cmake/monetdb-findpackages.cmake
        gdk/gdk.h
        gdk/gdk_aggr.c
        gdk/gdk_bat.c
        gdk/gdk_batop.c
        gdk/gdk_bbp.c
        gdk/gdk_calc.c
        gdk/gdk_calc_compare.h
        gdk/gdk_firstn.c
        gdk/gdk_hash.c
        gdk/gdk_heap.c
        gdk/gdk_join.c
        gdk/gdk_logger.c
        gdk/gdk_private.h
        gdk/gdk_select.c
        gdk/gdk_subquery.c
        gdk/gdk_unique.c
        gdk/gdk_utils.c
        gdk/gdk_value.c
        monetdb5/mal/mel.h
        monetdb5/modules/atoms/json.c
        monetdb5/modules/mal/pp_sort.c
        monetdb5/modules/mal/tablet.c
        sql/backends/monet5/rel_bin.c
        sql/backends/monet5/rel_bin.h
        sql/backends/monet5/rel_orderby.c
        sql/backends/monet5/rel_physical.c
        sql/backends/monet5/rel_pphash.c
        sql/backends/monet5/sql.c
        sql/backends/monet5/sql_cat.c
        sql/backends/monet5/sql_gencode.c
        sql/backends/monet5/sql_pp_statement.c
        sql/backends/monet5/sql_result.c
        sql/backends/monet5/sql_result.h
        sql/backends/monet5/sql_statement.c
        sql/backends/monet5/sql_statement.h
        sql/backends/monet5/sql_upgrades.c
        sql/backends/monet5/vaults/CMakeLists.txt
        sql/backends/monet5/vaults/odbc/odbc_loader.c
        sql/backends/monet5/vaults/parquet/parquet.c
        sql/backends/monet5/vaults/sambam/sambam.c
        sql/include/sql_relation.h
        sql/rel.txt
        sql/server/CMakeLists.txt
        sql/server/rel_basetable.c
        sql/server/rel_dump.c
        sql/server/rel_exp.c
        sql/server/rel_exp.h
        sql/server/rel_optimize_others.c
        sql/server/rel_optimize_proj.c
        sql/server/rel_optimize_sel.c
        sql/server/rel_optimizer.c
        sql/server/rel_optimizer_private.h
        sql/server/rel_prop.c
        sql/server/rel_psm.c
        sql/server/rel_rel.c
        sql/server/rel_rel.h
        sql/server/rel_rewriter.c
        sql/server/rel_rewriter.h
        sql/server/rel_schema.c
        sql/server/rel_statistics.c
        sql/server/rel_unnest.c
        sql/server/sql_mvc.c
        sql/server/sql_mvc.h
        sql/server/sql_parser.y
        sql/server/sql_scan.c
        sql/server/sql_semantic.c
        sql/server/sql_semantic.h
        sql/server/sqlparse.c
        sql/storage/bat/bat_logger.c
        sql/storage/bat/bat_storage.c
        sql/storage/bat/bat_table.c
        sql/storage/sql_storage.h
        sql/storage/store.c
        testing/sqllogictest.py
        tools/monetdbe/monetdbe.c
        tools/mserver/mserver5.c
Branch: nested
Log Message:

merged with default


diffs (truncated from 48544 to 300 lines):

diff --git a/.clang-format b/.clang-format
--- a/.clang-format
+++ b/.clang-format
@@ -22,7 +22,27 @@ AllowShortIfStatementsOnASingleLine: Nev
 AllowShortLoopsOnASingleLine: false
 # clang-format 23: AllowShortRecordOnASingleLine: Never
 AlwaysBreakBeforeMultilineStrings: false
-AttributeMacros: [_In_z_, _Printf_format_string_]
+AttributeMacros:
+  - _Printf_format_string_
+  - ATTR_ACCESS
+  - ATTR_ALIGNED
+  - ATTR_ALLOC_SIZE
+  - ATTR_COLD
+  - ATTR_CONST
+  - ATTR_COUNTED_BY
+  - ATTR_DESIGNATED_INIT
+  - ATTR_FORMAT
+  - ATTR_MALLOC
+  - ATTR_MALLOC_ARGS
+  - ATTR_NOINLINE
+  - ATTR_NONNULL
+  - ATTR_NONNULL_IF_NONZERO
+  - ATTR_NONSTRING
+  - ATTR_PURE
+  - ATTR_RETURNS_NONNULL
+  - ATTR_SENTINEL
+  - ATTR_VISIBILITY_HIDDEN
+  - ATTR_WARN_UNUSED_RESULT
 BinPackArguments: true
 BinPackParameters: BinPack
 BitFieldColonSpacing: None
diff --git a/.editorconfig b/.editorconfig
--- a/.editorconfig
+++ b/.editorconfig
@@ -7,11 +7,11 @@ insert_final_newline = true
 
 [*.{c,h,y}{,.in}]
 indent_style = tab
-tab_width = 4
+tab_width = 8
 indent_size = tab
 trim_trailing_whitespace = true
 charset = utf-8
-max_line_length = 120
+max_line_length = 72
 
 [*.py{,.in}]
 indent_style = space
@@ -24,9 +24,9 @@ indent_style = space
 indent_size = 2
 trim_trailing_whitespace = true
 
-[{clients/{mapi{lib,client},odbc},common/{options,utils},gdk}/**.{c,h}{,.in}]
-tab_width = 8
-max_line_length = 72
+[{monetdb5,sql}/**.{c,h,y}{,.in}]
+tab_width = 4
+max_line_length = 120
 
 [*.yml]
 indent_style = space
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -48,7 +48,7 @@ jobs:
       - name: install packages
         run: | 
           sudo apt-get update
-          sudo apt-get install -y bison libbz2-dev libpcre2-dev liblzma-dev 
liblz4-dev libxml2-dev pkg-config libxxhash-dev unixodbc-dev zlib1g-dev 
libssl-dev
+          sudo apt-get install -y bison libbz2-dev libpcre2-dev liblzma-dev 
liblz4-dev libxml2-dev pkg-config libxxhash-dev unixodbc-dev zlib1g-dev 
libssl-dev libhts-dev
         if: runner.os == 'Linux'
 
       - name: Patch /etc/hosts on Unix
@@ -74,7 +74,7 @@ jobs:
         if: runner.os == 'Linux'
 
       - name: brew packages
-        run: brew install bison pkgconf xxhash
+        run: brew install bison pkgconf xxhash htslib
         if: runner.os == 'macOS'
 
       - name: make MonetDB on macos
diff --git a/.hgtags b/.hgtags
--- a/.hgtags
+++ b/.hgtags
@@ -861,3 +861,4 @@ b4c2936c46f28ad6b3e59ed5a1a844726d521994
 1d742c123cb0e622d9a137b10bfbd7e4c446fde2 Dec2025_SP3_release
 bc5735402f969151c941c100a7552769c0e89a9a Dec2025_9
 bc5735402f969151c941c100a7552769c0e89a9a Dec2025_SP4_release
+7fc4b6dba998768109bbc40409a6128992eef08e Dec2025_11
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,6 +44,7 @@ include(TestBigEndian REQUIRED)
 
 if(WIN32)
   set(CMAKE_REQUIRED_LIBRARIES  ws2_32.lib shell32.lib advapi32.lib)
+  include_directories(BEFORE SYSTEM NT)
 endif()
 test_big_endian(IS_BIG_ENDIAN)
 
@@ -119,10 +120,6 @@ find_program(BASH NAMES bash DOC "bash i
 
 configure_file(monetdb_config.h.in
   ${CMAKE_CURRENT_BINARY_DIR}/monetdb_config.h)
-if(WIN32)
-  configure_file(unistd.h.in
-    ${CMAKE_CURRENT_BINARY_DIR}/unistd.h)
-endif()
 
 add_library(monetdb_config_header INTERFACE)
 
diff --git a/ChangeLog b/ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,43 @@
 # ChangeLog file for devel
 # This file is updated with Maddlog
 
+* Wed Nov 18 2026 Martin van Dinther <[email protected]>
+- Queries to a proto_loader('odbc:...') function with a limit-clause
+  will now push the limit value down to the ODBC driver via ODBC call
+   SQLSetStmtAttr(stmt, SQL_ATTR_MAX_ROWS, limit, 0). This reduces
+  the amount of rows retrieved from the connected ODBC Data Source. Example:
+  SELECT * FROM proto_loader('odbc:DRIVER=/usr/lib64/libsqlite3odbc.so;
+  Database=/home/user1/sqlite_dbs/chinook.db;
+  QUERY=SELECT * FROM tracks') LIMIT 10;
+  Note: this limit push down is only possible when there are no other
+  clauses between the FROM-clause and the LIMIT-OFFSET-clause or
+  OFFSET-FETCHFIRST-clause. If you need extra clauses specify
+  them in the QUERY= part of the string literal, example:
+  SELECT * FROM proto_loader('odbc:DRIVER=/usr/lib64/libsqlite3odbc.so;
+  Database=/home/user1/sqlite_dbs/chinook.db;
+  QUERY=SELECT * FROM tracks WHERE Name LIKE ''%Love%'' ORDER BY Name')
+  LIMIT 10;
+
+* Wed Nov 18 2026 Ying Zhang <[email protected]>
+- Added support for tuple matching at projections, so now one can run
+  queries like 'SELECT (1, 2) IN (SELECT 1, 2)' and 'SELECT (1, 2) NOT IN
+  (SELECT 1, 2)'
+
+* Thu Oct 22 2026 Martin van Dinther <[email protected]>
+- Added support for reading DNA sequence alignment data from *.sam and *.bam 
files.
+  Usage examples:
+    SELECT * FROM '/path/to/file1.bam';
+  or
+    SELECT * FROM file_loader('/path/to/file1.bam');
+  Prerequisites:
+  We use the HTSlib for reading these files and the library needs to be
+  pre-installed on your OS (e.g. on Fedora via: sudo dnf install htslib).
+  See also: https://www.htslib.org/download/
+  The HTSlib must be version 1.24 or higher.
+  Also the MonetDB server has to be started with startup argument:
+   --loadmodule htslib
+  to enable it. By default it is not enabled.
+
 * Wed Oct 21 2026 Sjoerd Mullender <[email protected]>
 - There is a new type of database farm, like the --dbextra farm, for
   temporary heaps.  Temporary heaps are heaps which are created and
diff --git a/ChangeLog-Archive b/ChangeLog-Archive
--- a/ChangeLog-Archive
+++ b/ChangeLog-Archive
@@ -1,6 +1,22 @@
 # DO NOT EDIT THIS FILE -- MAINTAINED AUTOMATICALLY
 # This file contains past ChangeLog entries
 
+* Fri Nov  6 2026 Sjoerd Mullender <[email protected]> - 11.55.11-20261116
+- There was a regression in the handling of the --dbextra=in-memory option.
+  Instead of keeping the "extra" farm (i.e. all transient BATs) fully
+  in memory, they were stored in a subdirectory called in-memory.
+- There was a bug in handling backslash escapes in strings if the
+  backslash was immediately followed by a non-ASCII UTF-8 character.
+- On Fedora 45, there was a change in how the ODBC drivers are configured.
+  The MonetDB ODBC driver now follows the new way of doing things.
+- In Dec2025-SP4, the MonetDB-geom module was accidentally not built for
+  Fedora and RHEL 9 and 10.  This has been corrected.  The module cannot
+  be built for RHEL 8 since the required geos library is too old.
+
+* Fri Oct 23 2026 Sjoerd Mullender <[email protected]> - 11.55.11-20261116
+- Added an option --relative-dir to mclient to specify the directory
+  for relative path names when using the ON CLIENT option in SQL queries.
+
 * Fri Jun 12 2026 Sjoerd Mullender <[email protected]> - 11.55.7-20260615
 - Fixed a number of race conditions.
 - Improved summing of floating point values in window functions.
diff --git a/MonetDB.spec b/MonetDB.spec
--- a/MonetDB.spec
+++ b/MonetDB.spec
@@ -62,7 +62,7 @@
 # derivatives (CentOS, Scientific Linux), the geos library is not
 # available.  However, the geos library is available in the Extra
 # Packages for Enterprise Linux (EPEL).
-%if 0%{?fedpkgs} && (0%{?rhel} > 8)
+%if 0%{?fedpkgs} && (%{!?rhel:10}%{?rhel} > 8)
 # By default create the MonetDB-geom package on Fedora
 %bcond_without geos
 %endif
@@ -86,7 +86,7 @@ Group: Applications/Databases
 License: MPL-2.0
 URL: https://www.monetdb.org/
 BugURL: https://github.com/MonetDB/MonetDB/issues
-Source: 
https://www.monetdb.org/downloads/sources/Dec2025-SP4/MonetDB-%{version}.tar.bz2
+Source: 
https://www.monetdb.org/downloads/sources/Dec2025-SP5/MonetDB-%{version}.tar.bz2
 
 BuildRequires: systemd-rpm-macros
 BuildRequires: cmake >= 3.12
@@ -356,8 +356,10 @@ This package contains the files needed t
 Summary: MonetDB ODBC driver
 Group: Applications/Databases
 Requires: %{name}-client-lib%{?_isa} = %{version}-%{release}
+%if (0%{?fedora} < 45)
 Requires(post): %{_bindir}/odbcinst
 Requires(postun): %{_bindir}/odbcinst
+%endif
 
 %description client-odbc
 MonetDB is a database management system that is developed from a
@@ -367,6 +369,7 @@ accelerators.  It also has an SQL front 
 
 This package contains the MonetDB ODBC driver.
 
+%if (0%{?fedora} < 45)
 %post client-odbc
 # install driver if first install of package or if driver not installed yet
 if [ "$1" -eq 1 ] || ! odbcinst -d -q -n MonetDB >& /dev/null; then
@@ -384,13 +387,22 @@ fi
 if [ "$1" -eq 0 ]; then
     odbcinst -u -d -n MonetDB
 fi
+%endif
 
 %files client-odbc
 %license LICENSE
 %defattr(-,root,root)
+%if (0%{?fedora} >= 45)
+%dir %{_prefix}/lib/odbc
+%dir %{_prefix}/lib/odbc/odbcinst.d
+%{_prefix}/lib/odbc/odbcinst.d/30-monetdb.ini
+%{_libdir}/odbc/libMonetODBC.so
+%{_libdir}/odbc/libMonetODBCs.so
+%else
 %{_libdir}/libMonetODBC.so
 %{_libdir}/libMonetODBCs.so
 %endif
+%endif
 
 %if %{without compat}
 %package client-tests
@@ -448,6 +460,7 @@ Requires: %{name}-server%{?_isa} = %{ver
 Obsoletes: MonetDB-geom-MonetDB5 < 11.50.0
 Provides: %{name}-geom-MonetDB5 = %{version}-%{release}
 Provides: %{name}-geom-MonetDB5%{?_isa} = %{version}-%{release}
+# BuildRequires: pkgconfig(geos) >= 3.10.0
 BuildRequires: geos-devel >= 3.10.0
 
 %description geom
@@ -1019,9 +1032,56 @@ rm "${RPM_BUILD_ROOT}"%{_sysconfdir}/log
 rm "${RPM_BUILD_ROOT}"%{_sysusersdir}/monetdb.conf
 rm "${RPM_BUILD_ROOT}"%{_tmpfilesdir}/monetdbd.conf
 rm "${RPM_BUILD_ROOT}"%{_unitdir}/monetdbd.service
+%else
+%if (0%{?fedora} >= 45)
+mkdir -p "${RPM_BUILD_ROOT}"%{_prefix}/lib/odbc/odbcinst.d
+mkdir -p "${RPM_BUILD_ROOT}"%{_libdir}/odbc
+cat > "${RPM_BUILD_ROOT}"%{_prefix}/lib/odbc/odbcinst.d/30-monetdb.ini <<\EOF
+[MonetDB]
+Description = ODBC for MonetDB
+Driver = libMonetODBC.so
+Setup = libMonetODBCs.so
+EOF
+mv "${RPM_BUILD_ROOT}"%{_libdir}/libMonetODBC*.so 
"${RPM_BUILD_ROOT}"%{_libdir}/odbc
+%endif
 %endif
 
 %changelog
+* Mon Nov 16 2026 Sjoerd Mullender <[email protected]> - 11.55.11-20261116
+- Rebuilt.
+- GH#7976: Adding an unrelated composite constraint makes
+  `sys.dump_database` reverse an existing composite key, producing a dump
+  that cannot be restored
+- GH#7985: `QUALIFY` with inline `ROW_NUMBER` leaks an `ORDER BY` column
+  and filters the wrong rows
+- GH#8031: Query giving wrong result when casting is expected to fail
+- GH#8034: ORDER BY query with LIKE and string concatenation fails to
+  produce a result set
+- GH#8035: ALTER TABLE ALTER COLUMN DATE to TIMESTAMP changes an existing
+  value
+- GH#8036: Rows inserted after in-transaction `ALTER COLUMN` disappear
+  after commit
+- GH#8037: ALTER from VARCHAR to DECIMAL changes the scale or rejects
+  values accepted by CAST
+- GH#8044: GDKtracer_init_trace_file failed with in-memory mserver5 and
+  large insert
+
+* Fri Nov  6 2026 Sjoerd Mullender <[email protected]> - 11.55.11-20261116
+- MonetDB: There was a regression in the handling of the --dbextra=in-memory 
option.
+  Instead of keeping the "extra" farm (i.e. all transient BATs) fully
+  in memory, they were stored in a subdirectory called in-memory.
+- MonetDB: There was a bug in handling backslash escapes in strings if the
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to