Skip to content

Commit 494a592

Browse files
committed
update results
1 parent e891f5e commit 494a592

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

sql/core/src/test/resources/sql-tests/results/group-by-ordinal.sql.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ select a, b, sum(b) from data group by 3
122122
struct<>
123123
-- !query output
124124
org.apache.spark.sql.AnalysisException
125-
aggregate functions are not allowed in GROUP BY, but found sum(CAST(data.`b` AS BIGINT))
125+
aggregate functions are not allowed in GROUP BY, but found sum(data.`b`)
126126

127127

128128
-- !query
@@ -131,7 +131,7 @@ select a, b, sum(b) + 2 from data group by 3
131131
struct<>
132132
-- !query output
133133
org.apache.spark.sql.AnalysisException
134-
aggregate functions are not allowed in GROUP BY, but found (sum(CAST(data.`b` AS BIGINT)) + CAST(2 AS BIGINT))
134+
aggregate functions are not allowed in GROUP BY, but found (sum(data.`b`) + CAST(2 AS BIGINT))
135135

136136

137137
-- !query

sql/core/src/test/resources/sql-tests/results/postgreSQL/aggregates_part1.sql.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ struct<>
381381
org.apache.spark.sql.AnalysisException
382382

383383
Aggregate/Window/Generate expressions are not valid in where clause of the query.
384-
Expression in where clause: [(sum(DISTINCT CAST((outer(a.`four`) + b.`four`) AS BIGINT)) = CAST(b.`four` AS BIGINT))]
385-
Invalid expressions: [sum(DISTINCT CAST((outer(a.`four`) + b.`four`) AS BIGINT))]
384+
Expression in where clause: [(sum(DISTINCT (outer(a.`four`) + b.`four`)) = CAST(b.`four` AS BIGINT))]
385+
Invalid expressions: [sum(DISTINCT (outer(a.`four`) + b.`four`))]
386386

387387

388388
-- !query

sql/core/src/test/resources/sql-tests/results/subquery/negative-cases/invalid-correlation.sql.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ AND t2b = (SELECT max(avg)
4646
struct<>
4747
-- !query output
4848
org.apache.spark.sql.AnalysisException
49-
grouping expressions sequence is empty, and 't2.`t2b`' is not an aggregate function. Wrap '(avg(CAST(t2.`t2b` AS BIGINT)) AS `avg`)' in windowing function(s) or wrap 't2.`t2b`' in first() (or first_value) if you don't care which value you get.
49+
grouping expressions sequence is empty, and 't2.`t2b`' is not an aggregate function. Wrap '(avg(t2.`t2b`) AS `avg`)' in windowing function(s) or wrap 't2.`t2b`' in first() (or first_value) if you don't care which value you get.
5050

5151

5252
-- !query

sql/core/src/test/resources/sql-tests/results/udf/postgreSQL/udf-aggregates_part1.sql.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ struct<>
372372
org.apache.spark.sql.AnalysisException
373373

374374
Aggregate/Window/Generate expressions are not valid in where clause of the query.
375-
Expression in where clause: [(sum(DISTINCT CAST((outer(a.`four`) + b.`four`) AS BIGINT)) = CAST(CAST(udf(ansi_cast(four as string)) AS INT) AS BIGINT))]
376-
Invalid expressions: [sum(DISTINCT CAST((outer(a.`four`) + b.`four`) AS BIGINT))]
375+
Expression in where clause: [(sum(DISTINCT (outer(a.`four`) + b.`four`)) = CAST(CAST(udf(ansi_cast(four as string)) AS INT) AS BIGINT))]
376+
Invalid expressions: [sum(DISTINCT (outer(a.`four`) + b.`four`))]
377377

378378

379379
-- !query

0 commit comments

Comments
 (0)