Skip to content

Commit a0675a5

Browse files
committed
Merge remote-tracking branch 'upstream/main' into cleanup-deps
2 parents a631d7f + bb83764 commit a0675a5

File tree

9 files changed

+16
-17
lines changed

9 files changed

+16
-17
lines changed

.github/workflows/rust.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
name: Download duckdb
3636
with:
3737
repository: "duckdb/duckdb"
38-
tag: "v1.3.0"
38+
tag: "v1.3.1"
3939
fileName: ${{ matrix.duckdb }}
4040
out-file-path: .
4141

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ members = [
77
]
88

99
[workspace.package]
10-
version = "1.3.0"
10+
version = "1.3.1"
1111
authors = ["wangfenjin <[email protected]>"]
1212
edition = "2021"
1313
repository = "https://github.com/duckdb/duckdb-rs"
@@ -19,6 +19,10 @@ license = "MIT"
1919
categories = ["database"]
2020

2121
[workspace.dependencies]
22+
duckdb = { version = "=1.3.1", path = "crates/duckdb" }
23+
duckdb-loadable-macros = { version = "=0.1.7", path = "crates/duckdb-loadable-macros" }
24+
libduckdb-sys = { version = "=1.3.1", path = "crates/libduckdb-sys" }
25+
2226
arrow = { version = "55", default-features = false }
2327
bindgen = { version = "0.71.1", default-features = false }
2428
calamine = "0.28.0"
@@ -29,13 +33,10 @@ chrono = { version = "0.4.22", default-features = false, features = [
2933
"clock",
3034
] }
3135
doc-comment = "0.3"
32-
duckdb = { version = "=1.3.0", path = "crates/duckdb" }
33-
duckdb-loadable-macros = { version = "=0.1.7", path = "crates/duckdb-loadable-macros" }
3436
fallible-iterator = "0.3"
3537
fallible-streaming-iterator = "0.1"
3638
flate2 = "1.0"
3739
hashlink = "0.10"
38-
libduckdb-sys = { version = "=1.3.0", path = "crates/libduckdb-sys" }
3940
num = { version = "0.4", default-features = false }
4041
num-integer = "0.1.46"
4142
pkg-config = "0.3.24"

crates/duckdb/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "duckdb"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
authors = { workspace = true }
55
edition = { workspace = true }
66
repository = { workspace = true }

crates/duckdb/src/test_all_types.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ fn test_large_arrow_types() -> crate::Result<()> {
2222
fn test_with_database(database: &Connection) -> crate::Result<()> {
2323
// uhugeint, time_tz, and dec38_10 aren't supported in the duckdb arrow layer
2424
// union is currently blocked by https://github.com/duckdb/duckdb/pull/11326
25-
let excluded = [
26-
"uhugeint", "time_tz", "dec38_10", "union", "varint", "dec_4_1", "dec_9_4", "dec_18_6",
27-
];
25+
let excluded = ["uhugeint", "time_tz", "dec38_10", "union", "varint"];
2826

2927
let mut binding = database.prepare(&format!(
3028
"SELECT * EXCLUDE ({}) FROM test_all_types()",

crates/duckdb/src/vtab/arrow.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ mod test {
11821182
db.register_table_function::<ArrowVTab>("arrow")?;
11831183

11841184
let rbs: Vec<RecordBatch> = db
1185-
.prepare("SELECT value::DECIMAL(38,0) as value FROM read_parquet('./examples/int32_decimal.parquet');")?
1185+
.prepare("SELECT * FROM read_parquet('./examples/int32_decimal.parquet');")?
11861186
.query_arrow([])?
11871187
.collect();
11881188
let param = arrow_recordbatch_to_query_params(rbs.into_iter().next().unwrap());
@@ -1192,7 +1192,7 @@ mod test {
11921192
assert_eq!(rb.num_columns(), 1);
11931193
let column = rb.column(0).as_any().downcast_ref::<Decimal128Array>().unwrap();
11941194
assert_eq!(column.len(), 1);
1195-
assert_eq!(column.value(0), i128::from(300));
1195+
assert_eq!(column.value(0), i128::from(30000));
11961196
Ok(())
11971197
}
11981198

@@ -1620,12 +1620,12 @@ mod test {
16201620

16211621
// With custom width and scale
16221622
let array: PrimitiveArray<arrow::datatypes::Decimal128Type> =
1623-
Decimal128Array::from(vec![i128::from(12345)]).with_data_type(DataType::Decimal128(38, 10));
1623+
Decimal128Array::from(vec![i128::from(12345)]).with_data_type(DataType::Decimal128(5, 2));
16241624
check_rust_primitive_array_roundtrip(array.clone(), array)?;
16251625

16261626
// With width and zero scale
16271627
let array: PrimitiveArray<arrow::datatypes::Decimal128Type> =
1628-
Decimal128Array::from(vec![i128::from(12345)]).with_data_type(DataType::Decimal128(38, 0));
1628+
Decimal128Array::from(vec![i128::from(12345)]).with_data_type(DataType::Decimal128(5, 0));
16291629
check_rust_primitive_array_roundtrip(array.clone(), array)?;
16301630

16311631
Ok(())

crates/libduckdb-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libduckdb-sys"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
authors = { workspace = true }
55
edition = { workspace = true }
66
license = { workspace = true }

crates/libduckdb-sys/duckdb.tar.gz

-320 KB
Binary file not shown.

crates/libduckdb-sys/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ mkdir -p "$SCRIPT_DIR/../../target" "$SCRIPT_DIR/duckdb"
1212
export DUCKDB_LIB_DIR="$SCRIPT_DIR/duckdb"
1313

1414
# Download and extract amalgamation
15-
DUCKDB_VERSION=v1.3.0
15+
DUCKDB_VERSION=v1.3.1
1616
git submodule update --init --checkout
1717
cd "$SCRIPT_DIR/duckdb-sources"
1818
git fetch

0 commit comments

Comments
 (0)