Skip to content

Commit 9e11862

Browse files
authored
Merge pull request #45 from datafusion-contrib/robtandy/to-library
convert to lib
2 parents 868cc77 + 65562ad commit 9e11862

File tree

4 files changed

+7
-30
lines changed

4 files changed

+7
-30
lines changed

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ license = "Apache-2.0"
2828
rust-version = "1.82"
2929
build = "build.rs"
3030

31+
[lib]
32+
name = "distributed_datafusion"
33+
path = "src/lib.rs"
34+
3135
[[bin]]
3236
name = "distributed-datafusion"
33-
path = "src/main.rs"
37+
path = "src/bin/distributed-datafusion.rs"
3438

3539
[dependencies]
3640
anyhow = "1"

build.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

scripts/launch_tpch_cluster.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,10 @@ if [ "$NUM_WORKERS" -lt 1 ]; then
6868
fi
6969

7070
# Check if the binary exists, build if not
71-
if [ ! -f "./target/release/distributed-datafusion" ]; then
71+
if [ ! -f "./target/debug/distributed-datafusion" ]; then
7272
echo "Binary not found, building release version..."
7373
echo "This may take a few minutes on first run..."
74-
if [ -f "./build.sh" ]; then
75-
./build.sh #--release
76-
else
77-
cargo build #--release
78-
fi
74+
cargo build #--release
7975

8076
# Verify the build was successful
8177
#if [ ! -f "./target/release/distributed-datafusion" ]; then
File renamed without changes.

0 commit comments

Comments
 (0)