Skip to content
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
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: cargo-check
args: [ "--workspace" ]
- id: fmt
args: [ "--", "--check" ]
- id: clippy
args: [ "--", "-D", "warnings" ]
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ datafusion = { version = "43" }
snafu = { version = "0.8.5", features = ["futures"] }

[patch.crates-io]
datafusion = { git="https://github.com/Embucket/datafusion.git", rev = "bc5a978a4102391b2b7427dfdf94dd4e2667be49" }
datafusion = { git="https://github.com/Embucket/datafusion.git", rev = "cc37c5920463b0cb0b224fc7f567fd4ae0368ffe" }


[workspace.lints.clippy]
Expand Down
12 changes: 6 additions & 6 deletions crates/control_plane/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ flatbuffers = { version = "24.3.25" }
#iceberg-rest-catalog = { git = "https://github.com/JanKaul/iceberg-rust.git", rev = "836f11f" }
#datafusion_iceberg = { git = "https://github.com/JanKaul/iceberg-rust.git", rev = "836f11f" }

datafusion = { git="https://github.com/Embucket/datafusion.git", rev = "bc5a978a4102391b2b7427dfdf94dd4e2667be49" }
datafusion-common = { git="https://github.com/Embucket/datafusion.git", rev = "bc5a978a4102391b2b7427dfdf94dd4e2667be49" }
datafusion-expr = { git="https://github.com/Embucket/datafusion.git", rev = "bc5a978a4102391b2b7427dfdf94dd4e2667be49" }
datafusion = { git="https://github.com/Embucket/datafusion.git", rev = "cc37c5920463b0cb0b224fc7f567fd4ae0368ffe" }
datafusion-common = { git="https://github.com/Embucket/datafusion.git", rev = "cc37c5920463b0cb0b224fc7f567fd4ae0368ffe" }
datafusion-expr = { git="https://github.com/Embucket/datafusion.git", rev = "cc37c5920463b0cb0b224fc7f567fd4ae0368ffe" }

iceberg-rust = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "5d4211521085722de35b14c444da087c52309771" }
iceberg-rest-catalog = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "5d4211521085722de35b14c444da087c52309771" }
datafusion_iceberg = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "5d4211521085722de35b14c444da087c52309771" }
iceberg-rust = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "68577441273eda894f1eb6d87b1c3e87dee0fdf6" }
iceberg-rest-catalog = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "68577441273eda894f1eb6d87b1c3e87dee0fdf6" }
datafusion_iceberg = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "68577441273eda894f1eb6d87b1c3e87dee0fdf6" }

arrow = { version = "53" }
arrow-json = { version = "53" }
Expand Down
17 changes: 16 additions & 1 deletion crates/nexus/src/http/dbt/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,24 @@ impl IntoResponse for DbtError {
Self::NotImplemented => http::StatusCode::NOT_IMPLEMENTED,
};

let message = match &self {
Self::GZipDecompress { source } => format!("failed to decompress GZip body: {source}"),
Self::LoginRequestParse { source } => {
format!("failed to parse login request: {source}")
}
Self::QueryBodyParse { source } => format!("failed to parse query body: {source}"),
Self::InvalidWarehouseIdFormat { source } => format!("invalid warehouse_id: {source}"),
Self::ControlService { source } => source.to_string(),
Self::RowParse { source } => format!("failed to parse row JSON: {source}"),
Self::MissingAuthToken | Self::MissingDbtSession | Self::InvalidAuthData => {
"session error".to_string()
}
Self::NotImplemented => "feature not implemented".to_string(),
};

let body = Json(JsonResponse {
success: false,
message: Some(self.to_string()),
message: Some(message),
data: None,
code: Some(status_code.as_u16().to_string()),
});
Expand Down
2 changes: 1 addition & 1 deletion crates/nexus/src/http/dbt/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub async fn login(

//println!("Received login request: {:?}", query);
//println!("Body data parameters: {:?}", body_json);
let token = uuid::Uuid::new_v4().to_string();
let token = Uuid::new_v4().to_string();

let warehouses = state
.control_svc
Expand Down
2 changes: 1 addition & 1 deletion crates/nexus/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ async fn buffer_and_print<B>(
body: B,
) -> Result<Bytes, (StatusCode, String)>
where
B: axum::body::HttpBody<Data = Bytes>,
B: axum::body::HttpBody<Data = Bytes> + Send,
B::Error: std::fmt::Display,
{
let bytes = match body.collect().await {
Expand Down
12 changes: 6 additions & 6 deletions crates/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ serde = { workspace = true }
serde_json = { workspace = true }
object_store = { workspace = true }

datafusion = { git="https://github.com/Embucket/datafusion.git", rev = "bc5a978a4102391b2b7427dfdf94dd4e2667be49" }
datafusion-common = { git="https://github.com/Embucket/datafusion.git", rev = "bc5a978a4102391b2b7427dfdf94dd4e2667be49" }
datafusion-expr = { git="https://github.com/Embucket/datafusion.git", rev = "bc5a978a4102391b2b7427dfdf94dd4e2667be49" }
datafusion = { git="https://github.com/Embucket/datafusion.git", rev = "cc37c5920463b0cb0b224fc7f567fd4ae0368ffe" }
datafusion-common = { git="https://github.com/Embucket/datafusion.git", rev = "cc37c5920463b0cb0b224fc7f567fd4ae0368ffe" }
datafusion-expr = { git="https://github.com/Embucket/datafusion.git", rev = "cc37c5920463b0cb0b224fc7f567fd4ae0368ffe" }

iceberg-rust = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "5d4211521085722de35b14c444da087c52309771" }
iceberg-rest-catalog = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "5d4211521085722de35b14c444da087c52309771" }
datafusion_iceberg = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "5d4211521085722de35b14c444da087c52309771" }
iceberg-rust = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "68577441273eda894f1eb6d87b1c3e87dee0fdf6" }
iceberg-rest-catalog = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "68577441273eda894f1eb6d87b1c3e87dee0fdf6" }
datafusion_iceberg = { git = "https://github.com/Embucket/iceberg-rust.git", rev = "68577441273eda894f1eb6d87b1c3e87dee0fdf6" }

arrow = { version = "53" }
arrow-json = { version = "53" }
Expand Down
Loading
Loading