Changeset: 36c5a3bf3537 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/36c5a3bf3537
Modified Files:
        gdk/gdk_batop.c
Branch: default
Log Message:

Merge with Dec2025 branch.


diffs (54 lines):

diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -2061,6 +2061,14 @@ BATslice(BAT *b, BUN l, BUN h)
                } else {
                        bn->tnokey[0] = bn->tnokey[1] = 0;
                }
+               if (bi.minpos >= l && bi.minpos < h)
+                       bn->tminpos = bi.minpos - l;
+               else
+                       bn->tminpos = BUN_NONE;
+               if (bi.maxpos >= l && bi.maxpos < h)
+                       bn->tmaxpos = bi.maxpos - l;
+               else
+                       bn->tmaxpos = BUN_NONE;
        }
   doreturn:
        bat_iterator_end(&bi);
diff --git a/sql/test/merge-partitions/Tests/mergepart31.test 
b/sql/test/merge-partitions/Tests/mergepart31.test
--- a/sql/test/merge-partitions/Tests/mergepart31.test
+++ b/sql/test/merge-partitions/Tests/mergepart31.test
@@ -202,9 +202,7 @@ munion (
 | | ) [ ("splitted"."stamp" NOT NULL UNIQUE) <= (timestamp(7) "2020-10-01 
00:00:00.000000") ]
 | ) [ tinyint(1) "1" ],
 | project (
-| | select (
-| | | table("sys"."second_decade") [ "second_decade"."stamp" NOT NULL UNIQUE 
as "splitted"."stamp" ]
-| | ) [ ("splitted"."stamp" NOT NULL UNIQUE) <= (timestamp(7) "2020-10-01 
00:00:00.000000") ]
+| | table("sys"."second_decade") [ "second_decade"."stamp" NOT NULL UNIQUE as 
"splitted"."stamp" ]
 | ) [ tinyint(1) "1" ],
 | project (
 | | select (
@@ -254,8 +252,8 @@ explain show details select 1 from split
 ----
 project (
 | select (
-| | table("sys"."third_decade") [ "third_decade"."stamp" UNIQUE as 
"splitted"."stamp" ]
-| ) [ (timestamp(7) "2020-01-01 00:00:00.000000") < ("splitted"."stamp" 
UNIQUE) <= (timestamp(7) "2020-01-01 00:00:00.000000") ]
+| |  [ timestamp(7) NULL as "splitted"."stamp" ]
+| ) [ boolean(1) "false" ]
 ) [ tinyint(1) "1" ]
 
 query T nosort
@@ -554,8 +552,8 @@ explain show details select 1 from split
 ----
 project (
 | select (
-| | table("sys"."third_decade2") [ "third_decade2"."stamp" NOT NULL UNIQUE as 
"splitted2"."stamp" ]
-| ) [ ("splitted2"."stamp" NOT NULL UNIQUE) > (int(31) "100"), 
("splitted2"."stamp" NOT NULL UNIQUE) in (int(31) "5", int(31) "6") ]
+| |  [ int(3) NULL as "splitted2"."stamp" ]
+| ) [ boolean(1) "false" ]
 ) [ tinyint(1) "1" ]
 
 query T nosort
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to