Skip to content

Commit

Permalink
Regenerate golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
miland-db committed Aug 12, 2024
1 parent 5c519c1 commit c807359
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

package org.apache.spark.sql.catalyst.plans

import java.util.IdentityHashMap

import scala.collection.mutable

import org.apache.spark.sql.AnalysisException
import org.apache.spark.sql.catalyst.SQLConfHelper
import org.apache.spark.sql.catalyst.expressions._
Expand All @@ -28,10 +32,6 @@ import org.apache.spark.sql.internal.SQLConf
import org.apache.spark.sql.types.{DataType, StructType}
import org.apache.spark.util.collection.BitSet

import java.util.IdentityHashMap

import scala.collection.mutable

/**
* An abstraction of the Spark SQL query plan tree, which can be logical or physical. This class
* defines some basic properties of a query plan node, as well as some new transform APIs to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ org.apache.spark.sql.catalyst.parser.ParseException
"errorClass" : "PARSE_SYNTAX_ERROR",
"sqlState" : "42601",
"messageParameters" : {
"error" : "'.'",
"error" : "end of input",
"hint" : ""
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ org.apache.spark.sql.catalyst.parser.ParseException
"errorClass" : "PARSE_SYNTAX_ERROR",
"sqlState" : "42601",
"messageParameters" : {
"error" : "'.'",
"error" : "end of input",
"hint" : ""
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ COMPACTIONS false
COMPENSATION false
COMPUTE false
CONCATENATE false
CONDITION true
CONSTRAINT true
CONTAINS false
CONTINUE false
COST false
CREATE true
CROSS true
Expand Down Expand Up @@ -110,6 +112,7 @@ EXCHANGE false
EXCLUDE false
EXECUTE true
EXISTS false
EXIT false
EXPLAIN false
EXPORT false
EXTENDED false
Expand All @@ -127,6 +130,7 @@ FOR true
FOREIGN true
FORMAT false
FORMATTED false
FOUND true
FROM true
FULL true
FUNCTION false
Expand All @@ -136,6 +140,7 @@ GLOBAL false
GRANT true
GROUP true
GROUPING false
HANDLER true
HAVING true
HOUR false
HOURS false
Expand Down Expand Up @@ -287,6 +292,7 @@ SORTED false
SOURCE false
SPECIFIC false
SQL true
SQLEXCEPTION true
START false
STATISTICS false
STORED false
Expand Down Expand Up @@ -376,6 +382,7 @@ CHECK
COLLATE
COLLATION
COLUMN
CONDITION
CONSTRAINT
CREATE
CROSS
Expand All @@ -394,10 +401,12 @@ FETCH
FILTER
FOR
FOREIGN
FOUND
FROM
FULL
GRANT
GROUP
HANDLER
HAVING
IN
INNER
Expand Down Expand Up @@ -425,6 +434,7 @@ SELECT
SESSION_USER
SOME
SQL
SQLEXCEPTION
TABLE
THEN
TIME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ org.apache.spark.sql.catalyst.parser.ParseException
"errorClass" : "PARSE_SYNTAX_ERROR",
"sqlState" : "42601",
"messageParameters" : {
"error" : "'.'",
"error" : "end of input",
"hint" : ""
}
}
Expand Down
11 changes: 10 additions & 1 deletion sql/core/src/test/resources/sql-tests/results/keywords.sql.out
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ COMPACTIONS false
COMPENSATION false
COMPUTE false
CONCATENATE false
CONDITION true
CONSTRAINT false
CONTAINS false
CONTINUE false
COST false
CREATE false
CROSS false
Expand Down Expand Up @@ -110,6 +112,7 @@ EXCHANGE false
EXCLUDE false
EXECUTE false
EXISTS false
EXIT false
EXPLAIN false
EXPORT false
EXTENDED false
Expand All @@ -127,6 +130,7 @@ FOR false
FOREIGN false
FORMAT false
FORMATTED false
FOUND true
FROM false
FULL false
FUNCTION false
Expand All @@ -136,6 +140,7 @@ GLOBAL false
GRANT false
GROUP false
GROUPING false
HANDLER true
HAVING false
HOUR false
HOURS false
Expand Down Expand Up @@ -287,6 +292,7 @@ SORTED false
SOURCE false
SPECIFIC false
SQL false
SQLEXCEPTION true
START false
STATISTICS false
STORED false
Expand Down Expand Up @@ -364,4 +370,7 @@ SELECT keyword from SQL_KEYWORDS() WHERE reserved
-- !query schema
struct<keyword:string>
-- !query output

CONDITION
FOUND
HANDLER
SQLEXCEPTION
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ org.apache.spark.sql.catalyst.parser.ParseException
"errorClass" : "PARSE_SYNTAX_ERROR",
"sqlState" : "42601",
"messageParameters" : {
"error" : "'.'",
"error" : "end of input",
"hint" : ""
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@

package org.apache.spark.sql.scripting

import scala.collection.mutable

import org.apache.spark.SparkFunSuite
import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.catalyst.expressions.{Alias, Literal}
import org.apache.spark.sql.catalyst.plans.logical.{OneRowRelation, Project}
import org.apache.spark.sql.catalyst.trees.Origin
import org.apache.spark.sql.test.SharedSparkSession

import scala.collection.mutable

/**
* Unit tests for execution nodes from SqlScriptingExecutionNode.scala.
* Execution nodes are constructed manually and iterated through.
Expand Down

0 comments on commit c807359

Please sign in to comment.