Skip to content

Commit 7dbd371

Browse files
gchenmarmbrus
authored andcommitted
[Minor][SQL] Fix typo in sql
In this PR, "analyser" is changed to "analyzer" to keep a consistent naming. Some other typos are also fixed. Author: Guancheng (G.C.) Chen <[email protected]> Closes #5474 from gchen/sql-typo and squashes the following commits: 70e6e76 [Guancheng (G.C.) Chen] Merge branch 'sql-typo' of github.com:gchen/spark into sql-typo fb7a6e2 [Guancheng (G.C.) Chen] fix typo in sql 37e3da1 [Guancheng (G.C.) Chen] fix type in sql
1 parent 6437e7c commit 7dbd371

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import org.apache.spark.sql.types._
2727

2828
/**
2929
* A trivial [[Analyzer]] with an [[EmptyCatalog]] and [[EmptyFunctionRegistry]]. Used for testing
30-
* when all relations are already filled in and the analyser needs only to resolve attribute
30+
* when all relations are already filled in and the analyzer needs only to resolve attribute
3131
* references.
3232
*/
3333
object SimpleAnalyzer extends Analyzer(EmptyCatalog, EmptyFunctionRegistry, true)

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Catalog.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import scala.collection.mutable
2222
import org.apache.spark.sql.catalyst.plans.logical.{LogicalPlan, Subquery}
2323

2424
/**
25-
* Thrown by a catalog when a table cannot be found. The analzyer will rethrow the exception
25+
* Thrown by a catalog when a table cannot be found. The analyzer will rethrow the exception
2626
* as an AnalysisException with the correct position information.
2727
*/
2828
class NoSuchTableException extends Exception
@@ -201,7 +201,7 @@ trait OverrideCatalog extends Catalog {
201201

202202
/**
203203
* A trivial catalog that returns an error when a relation is requested. Used for testing when all
204-
* relations are already filled in and the analyser needs only to resolve attribute references.
204+
* relations are already filled in and the analyzer needs only to resolve attribute references.
205205
*/
206206
object EmptyCatalog extends Catalog {
207207

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class SimpleFunctionRegistry(val caseSensitive: Boolean) extends FunctionRegistr
5757
}
5858

5959
/**
60-
* A trivial catalog that returns an error when a function is requested. Used for testing when all
61-
* functions are already filled in and the analyser needs only to resolve attribute references.
60+
* A trivial catalog that returns an error when a function is requested. Used for testing when all
61+
* functions are already filled in and the analyzer needs only to resolve attribute references.
6262
*/
6363
object EmptyFunctionRegistry extends FunctionRegistry {
6464
override def registerFunction(name: String, builder: FunctionBuilder): Unit = {

0 commit comments

Comments
 (0)