mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-10 17:28:01 +00:00
Remove FileType, fix compiler warning
This commit is contained in:
parent
ce66505377
commit
80cb9b13ce
2 changed files with 6 additions and 14 deletions
|
@ -14,14 +14,6 @@
|
||||||
|
|
||||||
//! SQL Abstract Syntax Tree (AST) types
|
//! SQL Abstract Syntax Tree (AST) types
|
||||||
|
|
||||||
/// Supported file types for `CREATE EXTERNAL TABLE`
|
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
|
||||||
pub enum FileType {
|
|
||||||
CSV,
|
|
||||||
NdJson,
|
|
||||||
Parquet,
|
|
||||||
}
|
|
||||||
|
|
||||||
/// SQL Abstract Syntax Tree (AST)
|
/// SQL Abstract Syntax Tree (AST)
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub enum ASTNode {
|
pub enum ASTNode {
|
||||||
|
|
|
@ -408,12 +408,12 @@ impl Parser {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parse a literal string
|
/// Parse a literal string
|
||||||
fn parse_literal_string(&mut self) -> Result<String, ParserError> {
|
// fn parse_literal_string(&mut self) -> Result<String, ParserError> {
|
||||||
match self.next_token() {
|
// match self.next_token() {
|
||||||
Some(Token::String(ref s)) => Ok(s.clone()),
|
// Some(Token::String(ref s)) => Ok(s.clone()),
|
||||||
other => parser_err!(format!("Expected literal string, found {:?}", other)),
|
// other => parser_err!(format!("Expected literal string, found {:?}", other)),
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
/// Parse a SQL datatype (in the context of a CREATE TABLE statement for example)
|
/// Parse a SQL datatype (in the context of a CREATE TABLE statement for example)
|
||||||
fn parse_data_type(&mut self) -> Result<SQLType, ParserError> {
|
fn parse_data_type(&mut self) -> Result<SQLType, ParserError> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue