Skip to content

Ability to reject queries via routing rules #761

@vaultah

Description

@vaultah

It'd be helpful to be able to reject incoming queries completely.

For example, if we had an empty terminal routing group, we could have a routing rule file similar to

...
---
name: "Bad queries handling"
description: >
  Reject bad queries before they reach Trino clusters
priority: 100000
condition: >
  isBadQuery(trinoQueryProperties)
actions:
  - "result.put('routingGroup', 'deny')"

This is currently not possible because trino-gateway always attempts to route queries to adhoc as the last resort.

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