package parser
- Alphabetic
- Public
- All
Type Members
-
abstract
class
AbstractSqlParser extends ParserInterface with SQLConfHelper with Logging
Base SQL parsing infrastructure.
-
class
AstBuilder extends SqlBaseParserBaseVisitor[AnyRef] with SQLConfHelper with Logging
The AstBuilder converts an ANTLR4 ParseTree into a catalyst Expression, LogicalPlan or TableIdentifier.
-
class
CatalystSqlParser extends AbstractSqlParser
Concrete SQL parser for Catalyst-only SQL statements.
-
class
ParseException extends AnalysisException
A ParseException is an AnalysisException that is thrown during the parse process.
A ParseException is an AnalysisException that is thrown during the parse process. It contains fields and an extended error message that make reporting and diagnosing errors easier.
-
trait
ParserInterface extends AnyRef
Interface for a parser.
Interface for a parser.
- Annotations
- @DeveloperApi()
-
class
SparkParserErrorStrategy extends DefaultErrorStrategy
A SparkParserErrorStrategy extends the DefaultErrorStrategy, that does special handling on errors.
A SparkParserErrorStrategy extends the DefaultErrorStrategy, that does special handling on errors.
The intention of this class is to provide more information of these errors encountered in ANTLR parser to the downstream consumers, to be able to apply the SparkThrowable error message framework to these exceptions.
-
class
SparkRecognitionException extends RecognitionException
A SparkRecognitionException extends the RecognitionException with more information including the error class and parameters for the error message, which align with the interface of SparkThrowableHelper.
-
class
SqlBaseLexer extends Lexer
- Annotations
- @SuppressWarnings()
-
class
SqlBaseParser extends Parser
- Annotations
- @SuppressWarnings()
-
class
SqlBaseParserBaseListener extends SqlBaseParserListener
This class provides an empty implementation of
SqlBaseParserListener, which can be extended to create a listener which only needs to handle a subset of the available methods. -
class
SqlBaseParserBaseVisitor[T] extends AbstractParseTreeVisitor[T] with SqlBaseParserVisitor[T]
This class provides an empty implementation of
SqlBaseParserVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods. -
trait
SqlBaseParserListener extends ParseTreeListener
This interface defines a complete listener for a parse tree produced by
SqlBaseParser. -
trait
SqlBaseParserVisitor[T] extends ParseTreeVisitor[T]
This interface defines a complete generic visitor for a parse tree produced by
SqlBaseParser. -
case class
UnclosedCommentProcessor(command: String, tokenStream: CommonTokenStream) extends SqlBaseParserBaseListener with Product with Serializable
The post-processor checks the unclosed bracketed comment.
Value Members
-
object
CatalystSqlParser extends CatalystSqlParser
For test-only.
-
object
LegacyTypeStringParser extends RegexParsers
Parser that turns case class strings into datatypes.
Parser that turns case class strings into datatypes. This is only here to maintain compatibility with Parquet files written by Spark 1.1 and below.
-
object
ParseErrorListener extends BaseErrorListener with Product with Serializable
The ParseErrorListener converts parse errors into AnalysisExceptions.
-
object
ParserUtils
A collection of utility methods for use during the parsing process.
-
object
PostProcessor extends SqlBaseParserBaseListener with Product with Serializable
The post-processor validates & cleans-up the parse tree during the parse process.