parseDataType(
  sqlText: String): DataTypeParserInterface Contract — SQL Parsers
ParserInterface is the abstraction of SQL parsers that can convert (parse) textual representation of SQL statements into Expressions, LogicalPlans, TableIdentifiers, FunctionIdentifier, StructType, and DataType.
| Method | Description | 
|---|---|
| 
 | Parses a SQL text to an DataType Used when: 
 | 
| 
 | Parses a SQL text to an Expression Used in the following: 
 | 
| 
 | Parses a SQL text to an  Used when: 
 | 
| 
 | Parses a SQL text to a LogicalPlan Used when: 
 | 
| 
 | Parses a SQL text to a  Used when: 
 | 
| 
 | Parses a SQL text to a schema (StructType) Used when: 
 | 
| Note | AbstractSqlParser is the base extension of the ParserInterfacecontract in Spark SQL. | 
ParserInterface is available as sqlParser property of SessionState.
scala> :type spark
org.apache.spark.sql.SparkSession
scala> :type spark.sessionState.sqlParser
org.apache.spark.sql.catalyst.parser.ParserInterface