data quality
Project description
DataQuality
快速开始
pip install dataqualityx
多文件任务
dataqualityx --files C:\warehouse\user\task
单文件任务
dataqualityx --files C:\warehouse\user\task\dws_test.yaml
脚本编写
db:
type: doris
host: "127.0.0.1"
port: 9030
user: "admin"
pw: "xxx"
db: "ods"
vars:
- var: "${dt} = $[yyyy-MM-dd-1]"
tasks:
- task:
sql: |
-- 校验 dws_test 表中前一天的数据是否存在
select count(1) from dws.dws_test
where dt = '${dt}'
expected:
- row: "> 0"
alert:
- task:
sql: |
-- 校验 dws_test 表中4种类型是否存在数据
select count(1)
from dws.dws_test
where dt = '${dt}'
group by type
order by type
expected:
- row: "> 0"
- row: "> 0"
- row: "> 0"
- row: "> 0"
alert:
支持命令
--files /home/users/xxx: 支持指定文件路径 (必填)--alerts none: 支持全局禁止报警
支持数据库
- mysql
- doris
- hive
- clickhouse
- clickhouse
- postgresql
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dataqualityx-0.1.2.tar.gz
(9.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dataqualityx-0.1.2.tar.gz.
File metadata
- Download URL: dataqualityx-0.1.2.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9114c1629439a0b431cba004b012a859bed2a42231e6b2480b6227a45e98614
|
|
| MD5 |
b8c21e22a4ed7bea867b70d556372825
|
|
| BLAKE2b-256 |
80579b3af5b8a0cb0f520b8165d84351ced4d3a706c55751d7d954aed6f59076
|
File details
Details for the file dataqualityx-0.1.2-py3-none-any.whl.
File metadata
- Download URL: dataqualityx-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c761c3308d67582261595b6fb811eafde72a858fdd11ca824ab05f48479d1c6
|
|
| MD5 |
321293bbed82d67f04be13dfc75fac1e
|
|
| BLAKE2b-256 |
671c05f39c75b8d36c523dc86bd4125aea128a0a4f6bff18ff374c394ca51ef0
|