Skip to content

Commit

Permalink
upgrade to 0.8.1 (#175)
Browse files Browse the repository at this point in the history
* upgrade to 0.8.1

* fix test
  • Loading branch information
wangfenjin authored Jun 16, 2023
1 parent 42de692 commit dd8803b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
name: Download duckdb
with:
repository: "duckdb/duckdb"
tag: "v0.8.0"
tag: "v0.8.1"
fileName: ${{ matrix.duckdb }}
out-file-path: .

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "duckdb"
version = "0.8.0"
version = "0.8.1"
authors = ["wangfenjin <wangfenj@gmail.com>"]
edition = "2021"
description = "Ergonomic wrapper for DuckDB"
Expand Down Expand Up @@ -81,7 +81,7 @@ tempdir = "0.3.7"

[dependencies.libduckdb-sys]
path = "libduckdb-sys"
version = "0.8.0"
version = "0.8.1"

[package.metadata.docs.rs]
features = []
Expand Down
2 changes: 1 addition & 1 deletion libduckdb-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libduckdb-sys"
version = "0.8.0"
version = "0.8.1"
authors = ["wangfenjin <wangfenj@gmail.com>"]
edition = "2021"
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion libduckdb-sys/duckdb-sources
Submodule duckdb-sources updated 901 files
Binary file modified libduckdb-sys/duckdb.tar.gz
Binary file not shown.
8 changes: 4 additions & 4 deletions libduckdb-sys/src/bindgen_bundled_version.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.65.1 */
/* automatically generated by rust-bindgen 0.66.0 */

#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
Expand Down Expand Up @@ -95,9 +95,9 @@ pub const __DARWIN_UNIX03: u32 = 1;
pub const __DARWIN_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_VERS_1050: u32 = 1;
pub const __DARWIN_NON_CANCELABLE: u32 = 0;
pub const __DARWIN_SUF_64_BIT_INO_T: &[u8; 9usize] = b"$INODE64\0";
pub const __DARWIN_SUF_1050: &[u8; 6usize] = b"$1050\0";
pub const __DARWIN_SUF_EXTSN: &[u8; 14usize] = b"$DARWIN_EXTSN\0";
pub const __DARWIN_SUF_64_BIT_INO_T: &[u8; 9] = b"$INODE64\0";
pub const __DARWIN_SUF_1050: &[u8; 6] = b"$1050\0";
pub const __DARWIN_SUF_EXTSN: &[u8; 14] = b"$DARWIN_EXTSN\0";
pub const __DARWIN_C_ANSI: u32 = 4096;
pub const __DARWIN_C_FULL: u32 = 900000;
pub const __DARWIN_C_LEVEL: u32 = 900000;
Expand Down
5 changes: 3 additions & 2 deletions libduckdb-sys/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ export DUCKDB_LIB_DIR="$SCRIPT_DIR/duckdb"
export DU_INCLUDE_DIR="$DUCKDB_LIB_DIR"

# Download and extract amalgamation
DUCKDB_VERSION=v0.8.0
DUCKDB_VERSION=v0.8.1
git submodule update --init --checkout
cd "$SCRIPT_DIR/duckdb-sources" || { echo "fatal error" >&2; exit 1; }
git checkout "$DUCKDB_VERSION"
git fetch
git switch "$DUCKDB_VERSION"
cd "$SCRIPT_DIR" || { echo "fatal error" >&2; exit 1; }
python3 "$SCRIPT_DIR/update_sources.py"

Expand Down
4 changes: 2 additions & 2 deletions src/vtab/excel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl VTab for ExcelVTab {
#[cfg(test)]
mod test {
use crate::{vtab::excel::ExcelVTab, Connection, Result};
use arrow::array::{Array, Date32Array, Float64Array, LargeStringArray};
use arrow::array::{Array, Date32Array, Float64Array, StringArray};
use std::error::Error;

#[test]
Expand All @@ -215,7 +215,7 @@ mod test {
let mut arr = stmt.query_arrow([])?;
let rb = arr.next().expect("no record batch");
assert_eq!(rb.num_rows(), 4);
let column = rb.column(0).as_any().downcast_ref::<LargeStringArray>().unwrap();
let column = rb.column(0).as_any().downcast_ref::<StringArray>().unwrap();
assert_eq!(column.len(), 4);
assert_eq!(column.value(0), "Action");
assert_eq!(column.value(1), "Adventure");
Expand Down

0 comments on commit dd8803b

Please sign in to comment.