Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove shared dependency #91

Merged
merged 3 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"] }
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