Skip to content

Commit 89a07f3

Browse files
committed
cargo fmt, rebase oss
1 parent 67681e5 commit 89a07f3

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ use once_cell::sync::Lazy;
7373
pub use openid;
7474
use parseable::PARSEABLE;
7575
use reqwest::{Client, ClientBuilder};
76+
pub use utils as parseable_utils;
7677
pub use {opentelemetry, opentelemetry_otlp, opentelemetry_proto, opentelemetry_sdk};
7778
pub use {tracing_actix_web, tracing_opentelemetry, tracing_subscriber};
78-
pub use utils as parseable_utils;
7979

8080
// It is very unlikely that panic will occur when dealing with locks.
8181
pub const LOCK_EXPECT: &str = "Thread shouldn't panic while holding a lock";

src/query/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ type BoxedBatchStream = SendableRecordBatchStream;
8282
/// Result type returned by query execution: either collected batches or a streaming adapter, plus field names.
8383
type QueryResult = Result<(Either<Vec<RecordBatch>, BoxedBatchStream>, Vec<String>), ExecuteError>;
8484

85-
// pub static QUERY_SESSION: Lazy<SessionContext> =
86-
// Lazy::new(|| Query::create_session_context(PARSEABLE.storage()));
8785
pub static SCHEMA_PROVIDER: OnceCell<Box<dyn ParseableSchemaProvider>> = OnceCell::new();
8886

8987
/// Additional physical optimizer rules registered by enterprise/plugins.

src/query/stream_schema_provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ use crate::{
5555
snapshot::{ManifestItem, Snapshot},
5656
},
5757
event::DEFAULT_TIMESTAMP_KEY,
58+
hottier::{GLOBAL_HOTTIER, HotTierManager},
5859
metrics::{
5960
QUERY_CACHE_HIT, increment_files_scanned_in_hottier_by_date,
6061
increment_files_scanned_in_query_by_date,
6162
},
62-
hottier::{GLOBAL_HOTTIER, HotTierManager},
6363
option::Mode,
6464
parseable::{DEFAULT_TENANT, PARSEABLE, STREAM_EXISTS},
6565
storage::{ObjectStorage, ObjectStoreFormat},

src/utils/arrow/flight.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ pub fn into_flight_data_stream(
149149
stream: datafusion::execution::SendableRecordBatchStream,
150150
) -> Result<Response<DoGetStream>, Box<Status>> {
151151
let record_stream = stream.map_err(|e| {
152-
arrow_flight::error::FlightError::Arrow(arrow_schema::ArrowError::ExternalError(
153-
Box::new(e),
154-
))
152+
arrow_flight::error::FlightError::Arrow(arrow_schema::ArrowError::ExternalError(Box::new(
153+
e,
154+
)))
155155
});
156156

157157
let write_options = IpcWriteOptions::default()

0 commit comments

Comments
 (0)