Skip to content

Commit

Permalink
chore: Remove shared dependency (paradedb#91)
Browse files Browse the repository at this point in the history
* remove shared

* remove wildcard imports

* suppress linter
  • Loading branch information
rebasedming authored and shamb0 committed Aug 24, 2024
1 parent 2488e68 commit 4358c13
Show file tree
Hide file tree
Showing 13 changed files with 1,305 additions and 51 deletions.
11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ serde = "1.0.201"
serde_json = "1.0.120"
signal-hook = "0.3.17"
signal-hook-async-std = "0.2.2"
shared = { git = "https://github.com/paradedb/paradedb.git", rev = "4854652" }
strum = { version = "0.26.3", features = ["derive"] }
supabase-wrappers = { git = "https://github.com/paradedb/wrappers.git", default-features = false, rev = "27af09b" }
thiserror = "1.0.59"
Expand All @@ -40,22 +39,24 @@ uuid = "1.9.1"
[dev-dependencies]
aws-config = "1.5.1"
aws-sdk-s3 = "1.34.0"
bigdecimal = { version = "0.3.0", features = ["serde"] }
bytes = "1.7.1"
datafusion = "37.1.0"
deltalake = { version = "0.17.3", features = ["datafusion"] }
futures = "0.3.30"
pgrx-tests = "0.11.3"
rstest = "0.19.0"
serde_arrow = { version = "0.11.3", features = ["arrow-51"] }
shared = { git = "https://github.com/paradedb/paradedb.git", rev = "4854652", features = [
"fixtures",
] }
sqlx = { version = "0.7.4", features = [
soa_derive = "0.13.0"
sqlx = { version = "0.7.3", features = [
"postgres",
"runtime-async-std",
"time",
"bigdecimal",
"uuid",
"chrono",
] }
tempfile = "3.12.0"
testcontainers = "0.16.7"
testcontainers-modules = { version = "0.4.2", features = ["localstack"] }
time = { version = "0.3.34", features = ["serde"] }
Expand Down
12 changes: 4 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ mod schema;

use hooks::ExtensionHook;
use pgrx::*;
use shared::{
gucs::PostgresGlobalGucSettings,
// telemetry::{setup_telemetry_background_worker, ParadeExtension},
};

// TODO: Reactivate once we've properly integrated with the monorepo
// A static variable is required to host grand unified configuration settings.
pub static GUCS: PostgresGlobalGucSettings = PostgresGlobalGucSettings::new();
// pub static GUCS: PostgresGlobalGucSettings = PostgresGlobalGucSettings::new();

pg_module_magic!();

Expand All @@ -42,9 +39,8 @@ pub extern "C" fn _PG_init() {
register_hook(&mut EXTENSION_HOOK)
};

GUCS.init("pg_analytics");

// TODO: Reactivate once we've properly integrated with the monorepo
// TODO: Depends on above TODO
// GUCS.init("pg_analytics");
// setup_telemetry_background_worker(ParadeExtension::PgAnalytics);
}

Expand Down
5 changes: 4 additions & 1 deletion tests/explain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@

mod fixtures;

use crate::fixtures::db::Query;
use crate::fixtures::{conn, s3, S3};
use anyhow::Result;
use fixtures::*;
use rstest::*;
use sqlx::PgConnection;

use crate::fixtures::tables::nyc_trips::NycTripsTable;

const S3_BUCKET: &str = "test-trip-setup";
const S3_KEY: &str = "test_trip_setup.parquet";

Expand Down
Loading

0 comments on commit 4358c13

Please sign in to comment.