Skip to content

Commit 8ec12e0

Browse files
committed
Merge 10.4 into 10.5
2 parents c32e59a + 36f51d9 commit 8ec12e0

File tree

87 files changed

+1669
-469
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1669
-469
lines changed

extra/wolfssl/wolfssl

Submodule wolfssl updated 1154 files

libmariadb

mysql-test/main/column_compression_parts.result

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ INSERT INTO t1 VALUES (1,REPEAT('a',100)),(2,REPEAT('v',200)),(3,REPEAT('r',300)
1212
INSERT INTO t1 VALUES (5,REPEAT('k',500)),(6,'April'),(7,7),(8,""),(9,"M"),(10,DEFAULT);
1313
ALTER TABLE t1 ANALYZE PARTITION p1;
1414
Table Op Msg_type Msg_text
15-
test.t1 analyze status Engine-independent statistics collected
1615
test.t1 analyze status OK
1716
ALTER TABLE t1 CHECK PARTITION p2;
1817
Table Op Msg_type Msg_text

mysql-test/main/derived_view.result

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4215,4 +4215,38 @@ a
42154215
drop table t1, t2;
42164216
drop view v1;
42174217
drop procedure aproc;
4218+
#
4219+
# MDEV-31305: Aggregation over materialized derived table
4220+
#
4221+
CREATE VIEW v AS
4222+
SELECT seq1.seq AS dim1, seq2.seq AS dim2, seq3.seq AS dim3,
4223+
FLOOR(RAND(13) * 5) AS p
4224+
FROM seq_100_to_105 seq1
4225+
JOIN seq_10_to_15 seq2
4226+
JOIN seq_1_to_5 seq3;
4227+
SELECT v.*, SUM(p) from v;
4228+
dim1 dim2 dim3 p SUM(p)
4229+
100 10 1 2 371
4230+
SELECT d.*, SUM(p)
4231+
FROM (
4232+
SELECT seq1.seq AS dim1, seq2.seq AS dim2, seq3.seq AS dim3,
4233+
FLOOR(RAND(13) * 5) AS p
4234+
FROM seq_100_to_105 seq1
4235+
JOIN seq_10_to_15 seq2
4236+
JOIN seq_1_to_5 seq3
4237+
) d;
4238+
dim1 dim2 dim3 p SUM(p)
4239+
100 10 1 2 371
4240+
WITH demo AS
4241+
(
4242+
SELECT seq1.seq AS dim1, seq2.seq AS dim2, seq3.seq AS dim3,
4243+
FLOOR(RAND(13) * 5) AS p
4244+
FROM seq_100_to_105 seq1
4245+
JOIN seq_10_to_15 seq2
4246+
JOIN seq_1_to_5 seq3
4247+
)
4248+
SELECT d.*, SUM(p) FROM demo d;
4249+
dim1 dim2 dim3 p SUM(p)
4250+
100 10 1 2 371
4251+
DROP VIEW v;
42184252
# End of 10.4 tests

mysql-test/main/derived_view.test

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,4 +2795,40 @@ drop table t1, t2;
27952795
drop view v1;
27962796
drop procedure aproc;
27972797

2798+
--echo #
2799+
--echo # MDEV-31305: Aggregation over materialized derived table
2800+
--echo #
2801+
2802+
--source include/have_sequence.inc
2803+
2804+
CREATE VIEW v AS
2805+
SELECT seq1.seq AS dim1, seq2.seq AS dim2, seq3.seq AS dim3,
2806+
FLOOR(RAND(13) * 5) AS p
2807+
FROM seq_100_to_105 seq1
2808+
JOIN seq_10_to_15 seq2
2809+
JOIN seq_1_to_5 seq3;
2810+
2811+
SELECT v.*, SUM(p) from v;
2812+
2813+
SELECT d.*, SUM(p)
2814+
FROM (
2815+
SELECT seq1.seq AS dim1, seq2.seq AS dim2, seq3.seq AS dim3,
2816+
FLOOR(RAND(13) * 5) AS p
2817+
FROM seq_100_to_105 seq1
2818+
JOIN seq_10_to_15 seq2
2819+
JOIN seq_1_to_5 seq3
2820+
) d;
2821+
2822+
WITH demo AS
2823+
(
2824+
SELECT seq1.seq AS dim1, seq2.seq AS dim2, seq3.seq AS dim3,
2825+
FLOOR(RAND(13) * 5) AS p
2826+
FROM seq_100_to_105 seq1
2827+
JOIN seq_10_to_15 seq2
2828+
JOIN seq_1_to_5 seq3
2829+
)
2830+
SELECT d.*, SUM(p) FROM demo d;
2831+
2832+
DROP VIEW v;
2833+
27982834
--echo # End of 10.4 tests

mysql-test/main/lowercase_table2.result

100755100644
File mode changed.

mysql-test/main/opt_trace.result

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9028,6 +9028,25 @@ JS
90289028
drop table t1,t2,t3,t10,t11;
90299029
set optimizer_trace=DEFAULT;
90309030
#
9031+
# MDEV-29179 Condition pushdown from HAVING into WHERE is not shown in optimizer trace
9032+
#
9033+
CREATE TABLE t1 (a INT, b VARCHAR(1), KEY (a), KEY(b,a)) ENGINE=MEMORY;
9034+
INSERT INTO t1 VALUES (4,'n'),(1,'h'),(NULL,'w');
9035+
SET optimizer_trace= 'enabled=on';
9036+
SELECT b, a FROM t1 WHERE b <> 'p' OR a = 4 GROUP BY b, a HAVING a <= 7;
9037+
b a
9038+
h 1
9039+
n 4
9040+
SELECT json_detailed(json_extract(trace, '$**.steps[*].join_optimization.steps[*].condition_pushdown_from_having') ), JSON_VALID(trace) FROM information_schema.optimizer_trace;
9041+
json_detailed(json_extract(trace, '$**.steps[*].join_optimization.steps[*].condition_pushdown_from_having') ) JSON_VALID(trace)
9042+
[
9043+
{
9044+
"conds": "(t1.b <> 'p' or multiple equal(4, t1.a)) and t1.a <= 7",
9045+
"having": null
9046+
}
9047+
] 1
9048+
DROP TABLE t1;
9049+
#
90319050
# End of 10.4 tests
90329051
#
90339052
set optimizer_trace='enabled=on';

mysql-test/main/opt_trace.test

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,17 @@ from information_schema.optimizer_trace;
790790
drop table t1,t2,t3,t10,t11;
791791
set optimizer_trace=DEFAULT;
792792

793+
--echo #
794+
--echo # MDEV-29179 Condition pushdown from HAVING into WHERE is not shown in optimizer trace
795+
--echo #
796+
797+
CREATE TABLE t1 (a INT, b VARCHAR(1), KEY (a), KEY(b,a)) ENGINE=MEMORY;
798+
INSERT INTO t1 VALUES (4,'n'),(1,'h'),(NULL,'w');
799+
SET optimizer_trace= 'enabled=on';
800+
SELECT b, a FROM t1 WHERE b <> 'p' OR a = 4 GROUP BY b, a HAVING a <= 7;
801+
SELECT json_detailed(json_extract(trace, '$**.steps[*].join_optimization.steps[*].condition_pushdown_from_having') ), JSON_VALID(trace) FROM information_schema.optimizer_trace;
802+
DROP TABLE t1;
803+
793804
--echo #
794805
--echo # End of 10.4 tests
795806
--echo #

mysql-test/main/partition.result

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2063,7 +2063,6 @@ ALTER TABLE t1 ANALYZE PARTITION p1 EXTENDED;
20632063
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'EXTENDED' at line 1
20642064
ALTER TABLE t1 ANALYZE PARTITION p1;
20652065
Table Op Msg_type Msg_text
2066-
test.t1 analyze status Engine-independent statistics collected
20672066
test.t1 analyze status OK
20682067
ALTER TABLE t1 CHECK PARTITION p1;
20692068
Table Op Msg_type Msg_text

mysql-test/main/partition_binlog.result

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Table Op Msg_type Msg_text
2727
test.t1 repair error Error in list of partitions to test.t1
2828
ALTER TABLE t1 ANALYZE PARTITION p0;
2929
Table Op Msg_type Msg_text
30-
test.t1 analyze status Engine-independent statistics collected
3130
test.t1 analyze status OK
3231
ALTER TABLE t1 CHECK PARTITION p0;
3332
Table Op Msg_type Msg_text

0 commit comments

Comments
 (0)