-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into enable-union-test
- Loading branch information
Showing
43 changed files
with
20,424 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,12 +33,13 @@ jobs: | |
rust-version: stable${{ matrix.host }} | ||
targets: ${{ matrix.target }} | ||
components: 'rustfmt, clippy' | ||
|
||
# download libduckdb | ||
- uses: robinraju/[email protected] | ||
name: Download duckdb | ||
with: | ||
repository: "duckdb/duckdb" | ||
tag: "v1.0.0" | ||
tag: "v1.1.1" | ||
fileName: ${{ matrix.duckdb }} | ||
out-file-path: . | ||
|
||
|
@@ -49,15 +50,25 @@ jobs: | |
with: | ||
file_path: ${{ github.workspace }}/${{ matrix.duckdb }} | ||
extract_dir: libduckdb | ||
|
||
- run: cargo fmt --all -- --check | ||
if: matrix.os == 'ubuntu-latest' | ||
- run: cargo clippy --all-targets --workspace --all-features -- -D warnings -A clippy::redundant-closure | ||
|
||
# TODO: remove | ||
- name: Workaround for https://github.com/pola-rs/polars/issues/19063 | ||
run: | | ||
cargo update [email protected] --precise 2.5.0 | ||
- name: run cargo clippy | ||
if: matrix.os == 'ubuntu-latest' | ||
name: run cargo clippy | ||
env: | ||
DUCKDB_LIB_DIR: ${{ github.workspace }}/libduckdb | ||
DUCKDB_INCLUDE_DIR: ${{ github.workspace }}/libduckdb | ||
LD_LIBRARY_PATH: ${{ github.workspace }}/libduckdb | ||
run: | | ||
cargo clippy --all-targets --workspace --all-features -- -D warnings -A clippy::redundant-closure | ||
- name: Run cargo-tarpaulin | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: actions-rs/[email protected] | ||
|
@@ -70,6 +81,7 @@ jobs: | |
DUCKDB_LIB_DIR: ${{ github.workspace }}/libduckdb | ||
DUCKDB_INCLUDE_DIR: ${{ github.workspace }}/libduckdb | ||
LD_LIBRARY_PATH: ${{ github.workspace }}/libduckdb | ||
|
||
- name: Upload to codecov.io | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: codecov/codecov-action@v1 | ||
|
@@ -88,19 +100,28 @@ jobs: | |
with: | ||
name: PATH | ||
value: $env:PATH;${{ github.workspace }}/libduckdb | ||
|
||
- name: Run cargo-test | ||
if: matrix.os == 'windows-latest' | ||
run: cargo test --features "modern-full vtab-full vtab-loadable" | ||
env: | ||
DUCKDB_LIB_DIR: ${{ github.workspace }}/libduckdb | ||
DUCKDB_INCLUDE_DIR: ${{ github.workspace }}/libduckdb | ||
|
||
- name: Build loadable extension | ||
run: cargo build --example hello-ext --features="vtab-loadable" | ||
env: | ||
DUCKDB_LIB_DIR: ${{ github.workspace }}/libduckdb | ||
DUCKDB_INCLUDE_DIR: ${{ github.workspace }}/libduckdb | ||
LD_LIBRARY_PATH: ${{ github.workspace }}/libduckdb | ||
|
||
- name: Build loadable extension | ||
run: cargo build --example hello-ext-capi --features="vtab-loadable loadable-extension" | ||
env: | ||
DUCKDB_LIB_DIR: ${{ github.workspace }}/libduckdb | ||
DUCKDB_INCLUDE_DIR: ${{ github.workspace }}/libduckdb | ||
LD_LIBRARY_PATH: ${{ github.workspace }}/libduckdb | ||
|
||
Windows: | ||
name: Windows build from source | ||
needs: test | ||
|
@@ -117,6 +138,7 @@ jobs: | |
with: | ||
rust-version: stable | ||
targets: x86_64-pc-windows-msvc | ||
|
||
- run: cargo install cargo-examples | ||
|
||
Sanitizer: | ||
|
@@ -140,7 +162,9 @@ jobs: | |
# leak sanitization, but we don't care about backtraces here, so long | ||
# as the other tests have them. | ||
RUST_BACKTRACE: "0" | ||
run: cargo -Z build-std test --features "modern-full extensions-full" --target x86_64-unknown-linux-gnu | ||
run: | | ||
# TODO switch back to modern-full once polars is fixed | ||
cargo -Z build-std test --features "chrono serde_json url r2d2 uuid extensions-full" --target x86_64-unknown-linux-gnu --package duckdb | ||
- name: publish crates --dry-run | ||
uses: katyo/publish-crates@v2 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
[submodule "crates/libduckdb-sys/duckdb-sources"] | ||
path = crates/libduckdb-sys/duckdb-sources | ||
url = https://github.com/duckdb/duckdb | ||
update = none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ members = [ | |
] | ||
|
||
[workspace.package] | ||
version = "1.0.0" | ||
version = "1.1.1" | ||
authors = ["wangfenjin <[email protected]>"] | ||
edition = "2021" | ||
repository = "https://github.com/duckdb/duckdb-rs" | ||
|
@@ -19,9 +19,9 @@ license = "MIT" | |
categories = ["database"] | ||
|
||
[workspace.dependencies] | ||
duckdb = { version = "1.0.0", path = "crates/duckdb" } | ||
libduckdb-sys = { version = "1.0.0", path = "crates/libduckdb-sys" } | ||
duckdb-loadable-macros = { version = "0.1.2", path = "crates/duckdb-loadable-macros" } | ||
duckdb = { version = "1.1.1", path = "crates/duckdb" } | ||
libduckdb-sys = { version = "1.1.1", path = "crates/libduckdb-sys" } | ||
duckdb-loadable-macros = { version = "0.1.3", path = "crates/duckdb-loadable-macros" } | ||
autocfg = "1.0" | ||
bindgen = { version = "0.69", default-features = false } | ||
byteorder = "1.3" | ||
|
@@ -34,14 +34,16 @@ doc-comment = "0.3" | |
fallible-iterator = "0.3" | ||
fallible-streaming-iterator = "0.1" | ||
flate2 = "1.0" | ||
hashlink = "0.8" | ||
hashlink = "0.9" | ||
lazy_static = "1.4" | ||
memchr = "2.3" | ||
num = { version = "0.4", default-features = false } | ||
num-integer = "0.1.46" | ||
pkg-config = "0.3.24" | ||
polars = "0.35.4" | ||
polars-core = "0.35.4" | ||
pretty_assertions = "1.4.0" | ||
prettyplease = "0.2.20" | ||
proc-macro2 = "1.0.56" | ||
quote = "1.0.21" | ||
r2d2 = "0.8.9" | ||
|
@@ -60,4 +62,4 @@ unicase = "2.6.0" | |
url = "2.1" | ||
uuid = "1.0" | ||
vcpkg = "0.2" | ||
arrow = { version = "52", default-features = false } | ||
arrow = { version = "53", default-features = false } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.