-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into david/granular-tracing
- Loading branch information
Showing
22 changed files
with
381 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
mod predicate; | ||
mod store; | ||
pub(crate) mod store; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
use thiserror::Error; | ||
use types::keyval::StoreName; | ||
use types::metadata::MetadataKey; | ||
|
||
/// TODO: Move to shared rust types so library can deserialize it from the TCP response | ||
#[derive(Debug, Eq, PartialEq, PartialOrd, Ord)] | ||
#[derive(Error, Debug, Eq, PartialEq, PartialOrd, Ord)] | ||
pub enum ServerError { | ||
#[error("Predicate {0} not found in store, attempt reindexing with predicate")] | ||
PredicateNotFound(MetadataKey), | ||
#[error("Store {0} not found")] | ||
StoreNotFound(StoreName), | ||
#[error("Store {0} already exists")] | ||
StoreAlreadyExists(StoreName), | ||
#[error("Store dimension is [{store_dimension}], input dimension of [{input_dimension}] was specified")] | ||
StoreDimensionMismatch { | ||
store_dimension: usize, | ||
input_dimension: usize, | ||
}, | ||
#[error("Could not deserialize query, error is {0}")] | ||
QueryDeserializeError(String), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.