Skip to content

Commit

Permalink
[Minor][SQL] Fix typo in sql
Browse files Browse the repository at this point in the history
In this PR, "analyser" is changed to "analyzer" to keep a consistent naming. Some other typos are also fixed.

Author: Guancheng (G.C.) Chen <chenguancheng@gmail.com>

Closes apache#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
  • Loading branch information
gchen authored and marmbrus committed Apr 11, 2015
1 parent 6437e7c commit 7dbd371
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import org.apache.spark.sql.types._

/**
* A trivial [[Analyzer]] with an [[EmptyCatalog]] and [[EmptyFunctionRegistry]]. Used for testing
* when all relations are already filled in and the analyser needs only to resolve attribute
* when all relations are already filled in and the analyzer needs only to resolve attribute
* references.
*/
object SimpleAnalyzer extends Analyzer(EmptyCatalog, EmptyFunctionRegistry, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import scala.collection.mutable
import org.apache.spark.sql.catalyst.plans.logical.{LogicalPlan, Subquery}

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class SimpleFunctionRegistry(val caseSensitive: Boolean) extends FunctionRegistr
}

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

0 comments on commit 7dbd371

Please sign in to comment.