Skip to content

Commit

Permalink
upgrade sqlparser
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Dec 28, 2024
1 parent 8bb8735 commit 572ea6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ recursive = "0.1.1"
regex = "1.8"
rstest = "0.23.0"
serde_json = "1"
sqlparser = { git = "https://github.com/apache/datafusion-sqlparser-rs.git", rev = "e9c3305008b4e0a28fb42a2fe6b18b3bd2a8291b", features = [
sqlparser = { git = "https://github.com/apache/datafusion-sqlparser-rs.git", rev = "6cbcfda74618e9d42caf4875b135288be1594cf0", features = [
"visitor",
] }
tempfile = "3"
Expand Down
6 changes: 3 additions & 3 deletions datafusion/sql/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ impl<'a> DFParser<'a> {

loop {
if let Token::Word(_) = self.parser.peek_token().token {
let identifier = self.parser.parse_identifier(false)?;
let identifier = self.parser.parse_identifier()?;
partitions.push(identifier.to_string());
} else {
return self.expected("partition name", self.parser.peek_token());
Expand Down Expand Up @@ -666,7 +666,7 @@ impl<'a> DFParser<'a> {
}

fn parse_column_def(&mut self) -> Result<ColumnDef, ParserError> {
let name = self.parser.parse_identifier(false)?;
let name = self.parser.parse_identifier()?;
let data_type = self.parser.parse_data_type()?;
let collation = if self.parser.parse_keyword(Keyword::COLLATE) {
Some(self.parser.parse_object_name(false)?)
Expand All @@ -676,7 +676,7 @@ impl<'a> DFParser<'a> {
let mut options = vec![];
loop {
if self.parser.parse_keyword(Keyword::CONSTRAINT) {
let name = Some(self.parser.parse_identifier(false)?);
let name = Some(self.parser.parse_identifier()?);
if let Some(option) = self.parser.parse_optional_column_option()? {
options.push(ColumnOptionDef { name, option });
} else {
Expand Down

0 comments on commit 572ea6e

Please sign in to comment.