Remove FileType, fix compiler warning

This commit is contained in:
Andy Grove 2018-09-03 13:51:43 -06:00
parent ce66505377
commit 80cb9b13ce
2 changed files with 6 additions and 14 deletions

View file

@ -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 {

View file

@ -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> {