chore: upgrade to Arrow 29.0 and use workspace package and dependencies (#782)

* chore: upgrade to Arrow 29.0 and use workspace package and dependencies

* fix: resolve PR comments

Co-authored-by: luofucong <luofucong@greptime.com>
This commit is contained in:
LFC
2022-12-23 14:28:37 +08:00
committed by GitHub
parent 26af9e6214
commit dc52a51576
48 changed files with 296 additions and 296 deletions

View File

@@ -1,8 +1,8 @@
[package]
name = "sql"
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
api = { path = "../api" }
@@ -15,4 +15,4 @@ itertools = "0.10"
mito = { path = "../mito" }
once_cell = "1.10"
snafu = { version = "0.7", features = ["backtraces"] }
sqlparser = "0.27"
sqlparser.workspace = true

View File

@@ -386,7 +386,7 @@ mod tests {
use std::assert_matches::assert_matches;
use common_catalog::consts::{DEFAULT_CATALOG_NAME, DEFAULT_SCHEMA_NAME};
use sqlparser::ast::{Query as SpQuery, Statement as SpStatement};
use sqlparser::ast::{Query as SpQuery, Statement as SpStatement, WildcardAdditionalOptions};
use sqlparser::dialect::GenericDialect;
use super::*;
@@ -533,7 +533,9 @@ mod tests {
let select = sqlparser::ast::Select {
distinct: false,
top: None,
projection: vec![sqlparser::ast::SelectItem::Wildcard],
projection: vec![sqlparser::ast::SelectItem::Wildcard(
WildcardAdditionalOptions::default(),
)],
into: None,
from: vec![sqlparser::ast::TableWithJoins {
relation: sqlparser::ast::TableFactor::Table {

View File

@@ -50,7 +50,7 @@ impl Insert {
pub fn values(&self) -> Result<Vec<Vec<Value>>> {
let values = match &self.inner {
Statement::Insert { source, .. } => match &*source.body {
SetExpr::Values(Values(exprs)) => sql_exprs_to_values(exprs)?,
SetExpr::Values(Values { rows, .. }) => sql_exprs_to_values(rows)?,
_ => unreachable!(),
},
_ => unreachable!(),