Skip to content

Commit

Permalink
fix expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-toth committed Jun 18, 2020
1 parent 607aa4d commit adf120c
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions sql/core/src/test/resources/sql-tests/results/explain.sql.out
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ spark.sql.codegen.wholeStage true

-- !query
EXPLAIN FORMATTED
SELECT key, max(val)
FROM explain_temp1
WHERE key > 0
GROUP BY key
SELECT key, max(val)
FROM explain_temp1
WHERE key > 0
GROUP BY key
ORDER BY key
-- !query schema
struct<plan:string>
Expand Down Expand Up @@ -179,7 +179,7 @@ Input [3]: [key#x, max(val)#x, max(val#x)#x]
-- !query
EXPLAIN FORMATTED
SELECT key, val FROM explain_temp1 WHERE key > 0
UNION
UNION
SELECT key, val FROM explain_temp1 WHERE key > 0
-- !query schema
struct<plan:string>
Expand Down Expand Up @@ -258,9 +258,9 @@ Results [2]: [key#x, val#x]

-- !query
EXPLAIN FORMATTED
SELECT *
FROM explain_temp1 a,
explain_temp2 b
SELECT *
FROM explain_temp1 a,
explain_temp2 b
WHERE a.key = b.key
-- !query schema
struct<plan:string>
Expand Down Expand Up @@ -326,9 +326,9 @@ Join condition: None

-- !query
EXPLAIN FORMATTED
SELECT *
FROM explain_temp1 a
LEFT OUTER JOIN explain_temp2 b
SELECT *
FROM explain_temp1 a
LEFT OUTER JOIN explain_temp2 b
ON a.key = b.key
-- !query schema
struct<plan:string>
Expand Down Expand Up @@ -383,14 +383,14 @@ Join condition: None

-- !query
EXPLAIN FORMATTED
SELECT *
FROM explain_temp1
WHERE key = (SELECT max(key)
FROM explain_temp2
WHERE key = (SELECT max(key)
FROM explain_temp3
WHERE val > 0)
AND val = 2)
SELECT *
FROM explain_temp1
WHERE key = (SELECT max(key)
FROM explain_temp2
WHERE key = (SELECT max(key)
FROM explain_temp3
WHERE val > 0)
AND val = 2)
AND val > 3
-- !query schema
struct<plan:string>
Expand Down Expand Up @@ -517,11 +517,11 @@ Results [1]: [max(key#x)#x AS max(key)#x]

-- !query
EXPLAIN FORMATTED
SELECT *
FROM explain_temp1
WHERE key = (SELECT max(key)
FROM explain_temp2
WHERE val > 0)
SELECT *
FROM explain_temp1
WHERE key = (SELECT max(key)
FROM explain_temp2
WHERE val > 0)
OR
key = (SELECT avg(key)
FROM explain_temp3
Expand Down Expand Up @@ -713,7 +713,7 @@ Subquery:2 Hosting operator id = 3 Hosting Expression = ReusedSubquery Subquery
EXPLAIN FORMATTED
WITH cte1 AS (
SELECT *
FROM explain_temp1
FROM explain_temp1
WHERE key > 10
)
SELECT * FROM cte1 a, cte1 b WHERE a.key = b.key
Expand Down Expand Up @@ -783,7 +783,7 @@ Join condition: None
EXPLAIN FORMATTED
WITH cte1 AS (
SELECT key, max(val)
FROM explain_temp1
FROM explain_temp1
WHERE key > 10
GROUP BY key
)
Expand Down

0 comments on commit adf120c

Please sign in to comment.