package parser
- Alphabetic
- Public
- Protected
Type Members
- abstract class AbstractSqlParser extends ParserInterface with SQLConfHelper with Logging
Base SQL parsing infrastructure.
- class AstBuilder extends SqlBaseBaseVisitor[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 SqlBaseBaseListener extends SqlBaseListener
This class provides an empty implementation of
SqlBaseListener, which can be extended to create a listener which only needs to handle a subset of the available methods. - class SqlBaseBaseVisitor[T] extends AbstractParseTreeVisitor[T] with SqlBaseVisitor[T]
This class provides an empty implementation of
SqlBaseVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods. - class SqlBaseLexer extends Lexer
- Annotations
- @SuppressWarnings()
- trait SqlBaseListener extends ParseTreeListener
This interface defines a complete listener for a parse tree produced by
SqlBaseParser. - class SqlBaseParser extends Parser
- Annotations
- @SuppressWarnings()
- trait SqlBaseVisitor[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 SqlBaseBaseListener 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.
- case 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.
- case object PostProcessor extends SqlBaseBaseListener with Product with Serializable
The post-processor validates & cleans-up the parse tree during the parse process.