Databricks SDK for JavaScript
    Preparing search index...

    A request-time data source whose value is provided at inference time: offline batch scoring or online serving endpoint

    interface RequestSource {
        schema?:
            | { $case: "flatSchema"; flatSchema: FlatSchema }
            | { $case: "dataframeSchema"; dataframeSchema: string };
    }
    Index

    Properties

    Properties

    schema?:
        | { $case: "flatSchema"; flatSchema: FlatSchema }
        | { $case: "dataframeSchema"; dataframeSchema: string }

    The schema describing the request-time fields.

    Type Declaration

    • { $case: "flatSchema"; flatSchema: FlatSchema }
      • $case: "flatSchema"
      • flatSchema: FlatSchema

        A flat schema with scalar-typed fields only.

    • { $case: "dataframeSchema"; dataframeSchema: string }
      • $case: "dataframeSchema"
      • dataframeSchema: string

        A schema containing scalar or nested fields, in Spark StructType JSON format (from df.schema.json()). This preserves field, array-element, and map-value nullability.