Skip to content

[ES|QL] add validation_only option #127995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

drewdaemon
Copy link
Contributor

Adds a validation_only option to the request body for _query.

If validation_only is true, the execution ends after the pre-analysis and analysis stages and returns

  • validation errors if there are any
  • an empty table if there aren't
curl -H 'Content-Type: application/json' \
      -d '{ "query": "FROM logs-aws_s3 |  EVAL aws.s3.bucket.name", "validation_only": true }' \
      -X POST \
      'http://localhost:9200/_query?format=txt'

@elasticsearchmachine elasticsearchmachine added v9.1.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor Pull request authored by a developer outside the Elasticsearch team v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants