Skip to content

Commit

Permalink
Update quality
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenchrist committed Jul 21, 2024
1 parent 69688b0 commit e6bb26c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,14 @@ models:
jsonType: string
jsonFormat: date-time
quality:
- description: The maximum duration between two orders should be less that 3600 seconds
- name: Completeness check
description: If there is a gap of orders longer than one hour, it clearly indicates a problem.
sql: |
SELECT MAX(EXTRACT(EPOCH FROM (order_timestamp - LAG(order_timestamp) OVER (ORDER BY order_timestamp)))) AS max_duration
FROM orders
must_be_less_than: 3600
- engine: soda
- name: Number of rows
engine: soda
type: row_count
must_be_greater_than: 5
line_items:
Expand Down Expand Up @@ -817,8 +819,6 @@ models:

#### SQL

Applicable on: [x] model, [x] field

An individual SQL query that returns a single number that can be compared with a threshold. The SQL query must be in the SQL dialect of the provided server.

> __Note:__ Establish a secure development process and use read-only connections, as the misuse of SQL queries can lead to SQL injection attacks.
Expand Down

0 comments on commit e6bb26c

Please sign in to comment.