Skip to content

Allow VQL LIMIT to be set from a variable #4673

@misje

Description

@misje

I have many occasions where I want to limit the amount rows from a source before passing it on. I need an upper limit on the data before passing it on to the destination (API endpoint, for example) as a safe guard. I can only use LIMIT with numeric literals. I would like this limit to be specified as an artifact parameter, e.g. SELECT * FROM Artifact.My.Source() LIMIT MaxItems.

Does this conflict with the design and idea of VQL? If so, are there other ways to programmatically limit the amount of rows from a query?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions