Skip to content

Commit 5f166ec

Browse files
authored
Merge branch 'apache:main' into feature-scalar_regexp_match_expr
2 parents 22b5297 + 55e56c4 commit 5f166ec

File tree

87 files changed

+551
-373
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+551
-373
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@ jobs:
8080
- name: Check datafusion-common without default features
8181
run: cargo check --all-targets --no-default-features -p datafusion-common
8282

83-
- name: Check datafusion-functions
83+
- name: Check datafusion-functions without default features
8484
run: cargo check --all-targets --no-default-features -p datafusion-functions
8585

86+
- name: Check datafusion-substrait without default features
87+
run: cargo check --all-targets --no-default-features -p datafusion-substrait
88+
8689
- name: Check workspace in debug mode
8790
run: cargo check --all-targets --workspace
8891

@@ -582,9 +585,9 @@ jobs:
582585
#
583586
# To reproduce:
584587
# 1. Install the version of Rust that is failing. Example:
585-
# rustup install 1.79.0
588+
# rustup install 1.80.0
586589
# 2. Run the command that failed with that version. Example:
587-
# cargo +1.79.0 check -p datafusion
590+
# cargo +1.80.0 check -p datafusion
588591
#
589592
# To resolve, either:
590593
# 1. Change your code to use older Rust features,
@@ -603,4 +606,4 @@ jobs:
603606
run: cargo msrv --output-format json --log-target stdout verify
604607
- name: Check datafusion-cli
605608
working-directory: datafusion-cli
606-
run: cargo msrv --output-format json --log-target stdout verify
609+
run: cargo msrv --output-format json --log-target stdout verify

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ homepage = "https://datafusion.apache.org"
6565
license = "Apache-2.0"
6666
readme = "README.md"
6767
repository = "https://github.com/apache/datafusion"
68-
rust-version = "1.79"
68+
rust-version = "1.80"
6969
version = "43.0.0"
7070

7171
[workspace.dependencies]

datafusion-cli/Cargo.lock

Lines changed: 0 additions & 4 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ license = "Apache-2.0"
2626
homepage = "https://datafusion.apache.org"
2727
repository = "https://github.com/apache/datafusion"
2828
# Specify MSRV here as `cargo msrv` doesn't support workspace version
29-
rust-version = "1.79"
29+
rust-version = "1.80"
3030
readme = "README.md"
3131

3232
[dependencies]

datafusion-cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
FROM rust:1.79-bookworm AS builder
18+
FROM rust:1.80-bookworm AS builder
1919

2020
COPY . /usr/src/datafusion
2121
COPY ./datafusion /usr/src/datafusion/datafusion

datafusion-cli/src/object_storage.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use aws_credential_types::provider::ProvideCredentials;
3232
use object_store::aws::{AmazonS3Builder, AwsCredential};
3333
use object_store::gcp::GoogleCloudStorageBuilder;
3434
use object_store::http::HttpBuilder;
35-
use object_store::{CredentialProvider, ObjectStore};
35+
use object_store::{ClientOptions, CredentialProvider, ObjectStore};
3636
use url::Url;
3737

3838
pub async fn get_s3_object_store_builder(
@@ -437,6 +437,7 @@ pub(crate) async fn get_object_store(
437437
}
438438
"http" | "https" => Arc::new(
439439
HttpBuilder::new()
440+
.with_client_options(ClientOptions::new().with_allow_http(true))
440441
.with_url(url.origin().ascii_serialization())
441442
.build()?,
442443
),

datafusion/common/src/cse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ use crate::tree_node::{
2424
Transformed, TransformedResult, TreeNode, TreeNodeRecursion, TreeNodeRewriter,
2525
TreeNodeVisitor,
2626
};
27+
use crate::IndexMap;
2728
use crate::Result;
28-
use indexmap::IndexMap;
2929
use std::collections::HashMap;
3030
use std::hash::{BuildHasher, Hash, Hasher, RandomState};
3131
use std::marker::PhantomData;

datafusion/common/src/dfschema.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,14 +1382,14 @@ mod tests {
13821382

13831383
// Succeeds if both have the same element type, disregards names and nullability
13841384
assert!(DFSchema::datatype_is_logically_equal(
1385-
&DataType::List(Field::new("item", DataType::Int8, true).into()),
1385+
&DataType::List(Field::new_list_field(DataType::Int8, true).into()),
13861386
&DataType::List(Field::new("element", DataType::Int8, false).into())
13871387
));
13881388

13891389
// Fails if element type is different
13901390
assert!(!DFSchema::datatype_is_logically_equal(
1391-
&DataType::List(Field::new("item", DataType::Int8, true).into()),
1392-
&DataType::List(Field::new("item", DataType::Int16, true).into())
1391+
&DataType::List(Field::new_list_field(DataType::Int8, true).into()),
1392+
&DataType::List(Field::new_list_field(DataType::Int16, true).into())
13931393
));
13941394

13951395
// Test maps
@@ -1522,14 +1522,14 @@ mod tests {
15221522

15231523
// Succeeds if both have the same element type, disregards names and nullability
15241524
assert!(DFSchema::datatype_is_semantically_equal(
1525-
&DataType::List(Field::new("item", DataType::Int8, true).into()),
1525+
&DataType::List(Field::new_list_field(DataType::Int8, true).into()),
15261526
&DataType::List(Field::new("element", DataType::Int8, false).into())
15271527
));
15281528

15291529
// Fails if element type is different
15301530
assert!(!DFSchema::datatype_is_semantically_equal(
1531-
&DataType::List(Field::new("item", DataType::Int8, true).into()),
1532-
&DataType::List(Field::new("item", DataType::Int16, true).into())
1531+
&DataType::List(Field::new_list_field(DataType::Int8, true).into()),
1532+
&DataType::List(Field::new_list_field(DataType::Int16, true).into())
15331533
));
15341534

15351535
// Test maps

datafusion/common/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ pub use param_value::ParamValues;
7373
pub use scalar::{ScalarType, ScalarValue};
7474
pub use schema_reference::SchemaReference;
7575
pub use stats::{ColumnStatistics, Statistics};
76+
use std::hash::RandomState;
7677
pub use table_reference::{ResolvedTableReference, TableReference};
7778
pub use unnest::{RecursionUnnestOption, UnnestOptions};
7879
pub use utils::project_schema;
@@ -93,6 +94,9 @@ pub use error::{
9394
pub type HashMap<K, V, S = DefaultHashBuilder> = hashbrown::HashMap<K, V, S>;
9495
pub type HashSet<T, S = DefaultHashBuilder> = hashbrown::HashSet<T, S>;
9596

97+
pub type IndexMap<T, S = DefaultHashBuilder> = indexmap::IndexMap<T, S>;
98+
pub type IndexSet<T, S = RandomState> = indexmap::IndexSet<T, S>;
99+
96100
/// Downcast an Arrow Array to a concrete type, return an `DataFusionError::Internal` if the cast is
97101
/// not possible. In normal usage of DataFusion the downcast should always succeed.
98102
///

0 commit comments

Comments
 (0)