Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d3a2c2ea
Commit
d3a2c2ea
authored
Jun 30, 2020
by
Varun Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the test func_json deterministic
parent
baa60b59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
mysql-test/main/func_json.result
mysql-test/main/func_json.result
+4
-3
mysql-test/main/func_json.test
mysql-test/main/func_json.test
+2
-2
No files found.
mysql-test/main/func_json.result
View file @
d3a2c2ea
...
...
@@ -1332,13 +1332,14 @@ drop table t1;
#
CREATE TABLE t1 (e INT, a VARCHAR(255), v VARCHAR(255));
INSERT INTO t1 VALUES (0, 'a1', '1') , (0, 'a2', '2') , (1, 'b1', '3');
EXPLAIN SELECT B.e, JSON_OBJECTAGG(B.a, B.v) FROM t1 A, t1 B GROUP BY B.e;
EXPLAIN SELECT B.e, JSON_OBJECTAGG(B.a, B.v) FROM t1 A, t1 B GROUP BY B.e
, B.a
;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE A ALL NULL NULL NULL NULL 3 Using temporary; Using filesort
1 SIMPLE B ALL NULL NULL NULL NULL 3 Using join buffer (flat, BNL join)
SELECT B.e, JSON_OBJECTAGG(B.a, B.v) FROM t1 A, t1 B GROUP BY B.e;
SELECT B.e, JSON_OBJECTAGG(B.a, B.v) FROM t1 A, t1 B GROUP BY B.e
, B.a
;
e JSON_OBJECTAGG(B.a, B.v)
0 {"a1":"1", "a1":"1", "a1":"1", "a2":"2", "a2":"2", "a2":"2"}
0 {"a1":"1", "a1":"1", "a1":"1"}
0 {"a2":"2", "a2":"2", "a2":"2"}
1 {"b1":"3", "b1":"3", "b1":"3"}
DROP TABLE t1;
#
...
...
mysql-test/main/func_json.test
View file @
d3a2c2ea
...
...
@@ -833,8 +833,8 @@ drop table t1;
CREATE
TABLE
t1
(
e
INT
,
a
VARCHAR
(
255
),
v
VARCHAR
(
255
));
INSERT
INTO
t1
VALUES
(
0
,
'a1'
,
'1'
)
,
(
0
,
'a2'
,
'2'
)
,
(
1
,
'b1'
,
'3'
);
EXPLAIN
SELECT
B
.
e
,
JSON_OBJECTAGG
(
B
.
a
,
B
.
v
)
FROM
t1
A
,
t1
B
GROUP
BY
B
.
e
;
SELECT
B
.
e
,
JSON_OBJECTAGG
(
B
.
a
,
B
.
v
)
FROM
t1
A
,
t1
B
GROUP
BY
B
.
e
;
EXPLAIN
SELECT
B
.
e
,
JSON_OBJECTAGG
(
B
.
a
,
B
.
v
)
FROM
t1
A
,
t1
B
GROUP
BY
B
.
e
,
B
.
a
;
SELECT
B
.
e
,
JSON_OBJECTAGG
(
B
.
a
,
B
.
v
)
FROM
t1
A
,
t1
B
GROUP
BY
B
.
e
,
B
.
a
;
DROP
TABLE
t1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment