Skip to content

Commit 58f7441

Browse files
committed
Merge remote-tracking branch 'apache/main' into alamb/unpin_deps
2 parents 62474ec + c077ef5 commit 58f7441

File tree

28 files changed

+414
-369
lines changed

28 files changed

+414
-369
lines changed

.github/workflows/dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
name: Check License Header
2929
steps:
3030
- uses: actions/checkout@v4
31-
- uses: korandoru/hawkeye@v5
31+
- uses: korandoru/hawkeye@v6
3232

3333
prettier:
3434
name: Use prettier to check formatting of documents

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
name: Check License Header
4646
steps:
4747
- uses: actions/checkout@v4
48-
- uses: korandoru/hawkeye@v5
48+
- uses: korandoru/hawkeye@v6
4949

5050
# Check crate compiles and base cargo check passes
5151
linux-build-lib:

datafusion-cli/Cargo.lock

Lines changed: 24 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion-cli/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ readme = "README.md"
3030

3131
[dependencies]
3232
arrow = { version = "54.0.0" }
33-
async-trait = "0.1.73"
34-
aws-config = "1.5.15"
35-
aws-credential-types = "1.2.1"
36-
aws-sdk-sso = "1.56.0"
33+
async-trait = "0.1.0"
34+
aws-config = "1.5.0"
35+
aws-credential-types = "1.2.0"
36+
aws-sdk-sso = "1.57.0"
3737
aws-sdk-ssooidc = "1.57.0"
3838
aws-sdk-sts = "1.57.0"
3939
clap = { version = "4.5.27", features = ["derive", "cargo"] }
@@ -59,7 +59,7 @@ object_store = { version = "0.11.0", features = ["aws", "gcp", "http"] }
5959
parking_lot = { version = "0.12" }
6060
parquet = { version = "54.0.0", default-features = false }
6161
regex = "1.8"
62-
rustyline = "14.0"
62+
rustyline = "15.0"
6363
tokio = { version = "1.24", features = ["macros", "rt", "rt-multi-thread", "sync", "parking_lot", "signal"] }
6464
url = "2.5.4"
6565

datafusion-cli/src/helper.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use datafusion::sql::sqlparser::parser::ParserError;
3030

3131
use rustyline::completion::{Completer, FilenameCompleter, Pair};
3232
use rustyline::error::ReadlineError;
33-
use rustyline::highlight::Highlighter;
33+
use rustyline::highlight::{CmdKind, Highlighter};
3434
use rustyline::hint::Hinter;
3535
use rustyline::validate::{ValidationContext, ValidationResult, Validator};
3636
use rustyline::{Context, Helper, Result};
@@ -118,8 +118,8 @@ impl Highlighter for CliHelper {
118118
self.highlighter.highlight(line, pos)
119119
}
120120

121-
fn highlight_char(&self, line: &str, pos: usize, forced: bool) -> bool {
122-
self.highlighter.highlight_char(line, pos, forced)
121+
fn highlight_char(&self, line: &str, pos: usize, kind: CmdKind) -> bool {
122+
self.highlighter.highlight_char(line, pos, kind)
123123
}
124124
}
125125

datafusion-cli/src/highlighter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use datafusion::sql::sqlparser::{
2727
keywords::Keyword,
2828
tokenizer::{Token, Tokenizer},
2929
};
30-
use rustyline::highlight::Highlighter;
30+
use rustyline::highlight::{CmdKind, Highlighter};
3131

3232
/// The syntax highlighter.
3333
#[derive(Debug)]
@@ -73,7 +73,7 @@ impl Highlighter for SyntaxHighlighter {
7373
}
7474
}
7575

76-
fn highlight_char(&self, line: &str, _pos: usize, _forced: bool) -> bool {
76+
fn highlight_char(&self, line: &str, _pos: usize, _cmd: CmdKind) -> bool {
7777
!line.is_empty()
7878
}
7979
}

datafusion/catalog/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,19 @@ rust-version.workspace = true
2828
version.workspace = true
2929

3030
[dependencies]
31-
arrow-schema = { workspace = true }
31+
arrow = { workspace = true }
3232
async-trait = { workspace = true }
3333
dashmap = { workspace = true }
3434
datafusion-common = { workspace = true }
3535
datafusion-execution = { workspace = true }
3636
datafusion-expr = { workspace = true }
3737
datafusion-physical-plan = { workspace = true }
38+
datafusion-sql = { workspace = true }
39+
futures = { workspace = true }
3840
itertools = { workspace = true }
41+
log = { workspace = true }
3942
parking_lot = { workspace = true }
43+
sqlparser = { workspace = true }
4044

4145
[dev-dependencies]
4246
tokio = { workspace = true }

datafusion/catalog/src/async.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ mod tests {
430430
},
431431
};
432432

433-
use arrow_schema::SchemaRef;
433+
use arrow::datatypes::SchemaRef;
434434
use async_trait::async_trait;
435435
use datafusion_common::{error::Result, Statistics, TableReference};
436436
use datafusion_execution::config::SessionConfig;

datafusion/core/src/catalog_common/information_schema.rs renamed to datafusion/catalog/src/information_schema.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,29 @@
1919
//!
2020
//! [Information Schema]: https://en.wikipedia.org/wiki/Information_schema
2121
22-
use crate::catalog::{CatalogProviderList, SchemaProvider, TableProvider};
23-
use crate::datasource::streaming::StreamingTable;
24-
use crate::execution::context::TaskContext;
25-
use crate::logical_expr::{TableType, Volatility};
26-
use crate::physical_plan::stream::RecordBatchStreamAdapter;
27-
use crate::physical_plan::SendableRecordBatchStream;
28-
use crate::{
29-
config::{ConfigEntry, ConfigOptions},
30-
physical_plan::streaming::PartitionStream,
31-
};
22+
use crate::streaming::StreamingTable;
23+
use crate::{CatalogProviderList, SchemaProvider, TableProvider};
24+
use arrow::array::builder::{BooleanBuilder, UInt8Builder};
3225
use arrow::{
3326
array::{StringBuilder, UInt64Builder},
3427
datatypes::{DataType, Field, Schema, SchemaRef},
3528
record_batch::RecordBatch,
3629
};
37-
use arrow_array::builder::{BooleanBuilder, UInt8Builder};
3830
use async_trait::async_trait;
31+
use datafusion_common::config::{ConfigEntry, ConfigOptions};
3932
use datafusion_common::error::Result;
4033
use datafusion_common::DataFusionError;
34+
use datafusion_execution::TaskContext;
4135
use datafusion_expr::{AggregateUDF, ScalarUDF, Signature, TypeSignature, WindowUDF};
36+
use datafusion_expr::{TableType, Volatility};
37+
use datafusion_physical_plan::stream::RecordBatchStreamAdapter;
38+
use datafusion_physical_plan::streaming::PartitionStream;
39+
use datafusion_physical_plan::SendableRecordBatchStream;
4240
use std::collections::{HashMap, HashSet};
4341
use std::fmt::Debug;
4442
use std::{any::Any, sync::Arc};
4543

46-
pub(crate) const INFORMATION_SCHEMA: &str = "information_schema";
44+
pub const INFORMATION_SCHEMA: &str = "information_schema";
4745
pub(crate) const TABLES: &str = "tables";
4846
pub(crate) const VIEWS: &str = "views";
4947
pub(crate) const COLUMNS: &str = "columns";

0 commit comments

Comments
 (0)