Documentation Index
Fetch the complete documentation index at: https://openlayer.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Definition
The SQL query test allows you to write custom SQL queries to validate your data and set thresholds on the query results. This test executes a user-defined SQL query that returns a numerical result, which can then be compared against specified thresholds. The SQL query must reference your dataset asdf (the table name) and should return a single numerical value.
Taxonomy
- Task types: LLM, tabular classification, tabular regression, text classification.
- Availability: and .
Why it matters
- The SQL query test provides flexibility for creating custom data validation rules tailored to your specific use case.
- You can implement complex business logic and data quality checks that aren’t covered by standard tests.
- This enables domain-specific validation rules, such as checking data consistency across multiple columns, validating ranges, or ensuring specific business constraints are met.
- Custom SQL queries allow you to leverage the full power of SQL for data analysis and validation within your testing pipeline.
Test configuration examples
If you are writing atests.json, here are a few valid configurations for the SQL query test:

