Skip to content

Commit

Permalink
try something
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco committed Feb 25, 2024
1 parent 1d97296 commit 90d83a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ reqwest = { version = "0.11.18", default-features = false, features = [
"rustls-tls",
"json",
], optional = true }
sqlparser = { version = "0.43.1", optional = true }
sqlparser = { version = "0.41", optional = true }

[dev-dependencies]
datafusion-functions = { workspace = true }
Expand Down
10 changes: 5 additions & 5 deletions crates/core/src/delta_datafusion/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ use datafusion_expr::{
expr::InList, AggregateUDF, Between, BinaryExpr, Cast, Expr, GetIndexedField, Like, TableSource,
};
use datafusion_sql::planner::{ContextProvider, SqlToRel};
use sqlparser::ast::escape_quoted_string;
use sqlparser::dialect::GenericDialect;
use sqlparser::parser::Parser;
use sqlparser::tokenizer::Tokenizer;
use datafusion_sql::sqlparser::ast::escape_quoted_string;
use datafusion_sql::sqlparser::dialect::GenericDialect;
use datafusion_sql::sqlparser::parser::Parser;
use datafusion_sql::sqlparser::tokenizer::Tokenizer;

use crate::{DeltaResult, DeltaTableError};

Expand Down Expand Up @@ -609,7 +609,7 @@ mod test {
),
simple!(
cardinality(col("_list").range(col("value"), lit(10_i64))),
"cardinality(_list[value:10])".to_string()
"cardinality(_list[value:10:1])".to_string()
),
];

Expand Down
2 changes: 1 addition & 1 deletion crates/sql/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl<'a> DeltaParser<'a> {
}

pub fn parse_vacuum(&mut self) -> Result<Statement, ParserError> {
let table_name = self.parser.parse_object_name(false)?;
let table_name = self.parser.parse_object_name(true)?;
match self.parser.peek_token().token {
Token::Word(w) => match w.keyword {
Keyword::RETAIN => {
Expand Down

0 comments on commit 90d83a3

Please sign in to comment.