pub struct InspectFileParams {
pub path: String,
pub sample_rows: Option<u32>,
pub json_extract_path: Option<String>,
}Expand description
Parameters for the inspect_file tool.
Dry-run a file against the same schema inference + numeric-widening pipeline
that load_file uses, returning the inferred schema plus per-column
diagnostics. Call this before load_file whenever you are unsure about
types — especially for wide CSVs with large numbers, mixed integer/float
columns, or values that only appear near the end of the file. Use the
returned type + min / max to construct an explicit schema override
for the subsequent load_file / load_data call.
Fields§
§path: StringAbsolute path to the CSV, Parquet, or Arrow IPC file to inspect. Nothing is written to Hyper and no engine is started.
sample_rows: Option<u32>Maximum number of sample rows / values per column to return (default 5, max 50). Useful for checking that an override would produce the expected types before ingesting a large file.
json_extract_path: Option<String>Optional dot-separated path to extract a nested data array from a
JSON file before inspecting. See LoadFileParams::json_extract_path
for the full path syntax and stringified-JSON handling.
Trait Implementations§
Source§impl Debug for InspectFileParams
impl Debug for InspectFileParams
Source§impl<'de> Deserialize<'de> for InspectFileParams
impl<'de> Deserialize<'de> for InspectFileParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for InspectFileParams
impl JsonSchema for InspectFileParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for InspectFileParams
impl RefUnwindSafe for InspectFileParams
impl Send for InspectFileParams
impl Sync for InspectFileParams
impl Unpin for InspectFileParams
impl UnsafeUnpin for InspectFileParams
impl UnwindSafe for InspectFileParams
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request