Legacy Product

Fusion 5.10
    Fusion 5.10

    Parameterized SQL Aggregation Jobs

    A Spark SQL aggregation job where user-defined parameters are injected into a built-in SQL template at runtime.

    A SQL aggregation job where users provide parameters to be injected into a built-in SQL template at runtime.

    id - stringrequired

    The ID for this Spark job. Used in the API to reference this job

    <= 128 characters

    Match pattern: ^[A-Za-z0-9_\-]+$

    inputCollection - stringrequired

    Collection containing documents to be aggregated.

    outputCollection - string

    The collection to write the aggregates to on output. Defaults to the input collection if not specified.

    notes - string

    A short description about this job.

    parameters - array[object]

    Parameters bound on the SQL template at runtime.

    object attributes:{key required : {
     display name: Parameter Name
     type: string
    }
    value : {
     display name: Parameter Value
     type: string
    }
    }

    selectQuery - string

    The query to select the desired signals. If not set then '*:*' will be used, or equivalent.

    Default: *:*

    timeRange - string

    The time range to select signals on, e.g., `[* TO NOW]`. See Solr date range for more options (https://solr.apache.org/guide/8_8/working-with-dates.html).

    >= 1 characters

    sourceCatchup - boolean

    If true, only aggregate the signals since the last time the job was successfully run. If there is a record of such previous run then this overrides the starting time of time range set in 'timeRange' property.

    Default: true

    sql - string

    Use SQL to perform the aggregation. You do not need to include a time range filter in the WHERE clause as it gets applied automatically before executing the SQL statement.

    >= 1 characters

    rollupSql - string

    Use SQL to perform a rollup of previously aggregated docs. If left blank, the aggregation framework will supply a default SQL query to rollup aggregated metrics.

    >= 1 characters

    outputRollup - boolean

    Roll-up current results with all previous results for this aggregation id, which are available in "outputCollection".

    Default: true

    readOptions - array[object]

    Additional configuration settings to fine-tune how input records are read for this aggregation.

    object attributes:{key required : {
     display name: Parameter Name
     type: string
    }
    value : {
     display name: Parameter Value
     type: string
    }
    }

    type - stringrequired

    Default: sql_template

    Allowed values: sql_template