From 6c3571c87b254ebccfb6b7ffa09ea7f823bdb0d0 Mon Sep 17 00:00:00 2001 From: Dewey Dunnington Date: Tue, 10 Feb 2026 12:13:28 -0600 Subject: [PATCH 1/3] maybe make example work --- .github/workflows/examples.yml | 13 +++++++------ Cargo.lock | 9 --------- Cargo.toml | 1 - examples/sedonadb-rust-pointcloud/Cargo.toml | 5 +++-- examples/sedonadb-rust-pointcloud/src/main.rs | 2 +- examples/sedonadb-rust/Cargo.toml | 4 ++-- 6 files changed, 13 insertions(+), 21 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index b68aa6454..1910c930e 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -50,6 +50,10 @@ jobs: rust: strategy: fail-fast: false + matrix: + example: + - sedonadb-rust + - sedonadb-rust-pointcloud runs-on: ubuntu-latest env: @@ -66,17 +70,17 @@ jobs: - uses: Swatinem/rust-cache@v2 with: # Update this key to force a new cache - prefix-key: "rust-${{ matrix.name }}-v5" + prefix-key: "rust-${{ matrix.example }}-v5" - name: Install dependencies shell: bash run: | sudo apt-get update && sudo apt-get install -y libgeos-dev - - name: Build and run examples/sedonadb-rust + - name: Build and run examples/${{ matrix.example }} shell: bash run: | - cd examples/sedonadb-rust + cd examples/${{ matrix.example }} # Use current PR/branch commit instead of main branch if [ -n "${{ github.event.pull_request.head.sha }}" ]; then REV="${{ github.event.pull_request.head.sha }}" @@ -88,6 +92,3 @@ jobs: sed -i "s|git = \"https://github.com/apache/sedona-db.git\"|git = \"https://github.com/${REPO}.git\", rev = \"${REV}\"|" Cargo.toml cat Cargo.toml cargo run - - - name: Build and run examples/sedonadb-rust-pointcloud - run: cargo run -p sedonadb-rust-pointcloud-example diff --git a/Cargo.lock b/Cargo.lock index 041c4d122..7e8f27865 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5684,15 +5684,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "sedonadb-rust-pointcloud-example" -version = "0.0.1" -dependencies = [ - "sedona", - "sedona-pointcloud", - "tokio", -] - [[package]] name = "sedonadbr" version = "0.3.0" diff --git a/Cargo.toml b/Cargo.toml index 1602ddc30..ccdccb46d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,6 @@ members = [ "rust/sedona-testing", "rust/sedona", "sedona-cli", - "examples/sedonadb-rust-pointcloud", ] resolver = "2" diff --git a/examples/sedonadb-rust-pointcloud/Cargo.toml b/examples/sedonadb-rust-pointcloud/Cargo.toml index c3186caca..1e68d62ab 100644 --- a/examples/sedonadb-rust-pointcloud/Cargo.toml +++ b/examples/sedonadb-rust-pointcloud/Cargo.toml @@ -20,12 +20,13 @@ name = "sedonadb-rust-pointcloud-example" version = "0.0.1" authors.workspace = true license.workspace = true -description = "Apache SedonaDB Rust API Example" +description = "Apache SedonaDB Rust Point Cloud API Example" edition.workspace = true rust-version.workspace = true publish = false [dependencies] -sedona = { workspace = true, features = ["pointcloud"] } +# We use a git dependency here so that we can test these examples +sedona = { git = "https://github.com/apache/sedona-db.git", package = "sedona", features = ["pointcloud"] } sedona-pointcloud = { workspace = true } tokio = { workspace = true, features = ["rt-multi-thread"]} diff --git a/examples/sedonadb-rust-pointcloud/src/main.rs b/examples/sedonadb-rust-pointcloud/src/main.rs index 48ad54495..06e04cc0e 100644 --- a/examples/sedonadb-rust-pointcloud/src/main.rs +++ b/examples/sedonadb-rust-pointcloud/src/main.rs @@ -23,7 +23,7 @@ use sedona::context::{SedonaContext, SedonaDataFrame}; #[tokio::main] async fn main() -> Result<(), Box> { let ctx = SedonaContext::new_local_interactive().await?; - let url = "rust/sedona-pointcloud/tests/data/extra.laz"; + let url = "../../rust/sedona-pointcloud/tests/data/extra.laz"; let df = ctx.sql(&format!("SELECT geometry FROM \"{url}\" ")).await?; let output = df.show_sedona(&ctx, Some(5), Default::default()).await?; println!("{output}"); diff --git a/examples/sedonadb-rust/Cargo.toml b/examples/sedonadb-rust/Cargo.toml index 2e3169b73..22eb516ab 100644 --- a/examples/sedonadb-rust/Cargo.toml +++ b/examples/sedonadb-rust/Cargo.toml @@ -31,6 +31,6 @@ rust-version = "1.86" [dependencies] datafusion = { version = "51.0.0"} -# When sedona is released on crates.io, this can be a version and not a git repo -sedona = { git = "https://github.com/apache/sedona-db.git", package = "sedona"} +# We use a git dependency here so that we can test these examples +sedona = { git = "https://github.com/apache/sedona-db.git", package = "sedona" } tokio = { version = "1.44", features = ["rt-multi-thread"]} From 3abf17ddaa160be435d9af305c25a13781273cc1 Mon Sep 17 00:00:00 2001 From: Dewey Dunnington Date: Tue, 10 Feb 2026 13:08:17 -0600 Subject: [PATCH 2/3] maybe fix --- examples/sedonadb-rust-pointcloud/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/sedonadb-rust-pointcloud/Cargo.toml b/examples/sedonadb-rust-pointcloud/Cargo.toml index 1e68d62ab..2170ba9b1 100644 --- a/examples/sedonadb-rust-pointcloud/Cargo.toml +++ b/examples/sedonadb-rust-pointcloud/Cargo.toml @@ -25,6 +25,8 @@ edition.workspace = true rust-version.workspace = true publish = false +[workspace] + [dependencies] # We use a git dependency here so that we can test these examples sedona = { git = "https://github.com/apache/sedona-db.git", package = "sedona", features = ["pointcloud"] } From bcd98b806cdfeae5bfb9d974be36674d4d7ab963 Mon Sep 17 00:00:00 2001 From: Dewey Dunnington Date: Wed, 11 Feb 2026 09:21:11 -0600 Subject: [PATCH 3/3] oof --- examples/sedonadb-rust-pointcloud/Cargo.toml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/examples/sedonadb-rust-pointcloud/Cargo.toml b/examples/sedonadb-rust-pointcloud/Cargo.toml index 2170ba9b1..a267d7f2a 100644 --- a/examples/sedonadb-rust-pointcloud/Cargo.toml +++ b/examples/sedonadb-rust-pointcloud/Cargo.toml @@ -18,17 +18,18 @@ [package] name = "sedonadb-rust-pointcloud-example" version = "0.0.1" -authors.workspace = true -license.workspace = true +authors = ["Apache Sedona "] +license = "Apache-2.0" +homepage = "https://github.com/apache/sedona-db" +repository = "https://github.com/apache/sedona-db" description = "Apache SedonaDB Rust Point Cloud API Example" -edition.workspace = true -rust-version.workspace = true -publish = false +readme = "README.md" +edition = "2021" +rust-version = "1.86" [workspace] [dependencies] # We use a git dependency here so that we can test these examples sedona = { git = "https://github.com/apache/sedona-db.git", package = "sedona", features = ["pointcloud"] } -sedona-pointcloud = { workspace = true } -tokio = { workspace = true, features = ["rt-multi-thread"]} +tokio = { version = "1.44", features = ["rt-multi-thread"]}