[fix-13041] fix example checkFormula (#13110)

Co-authored-by: zhangshunmin <zhangshunmin@kezaihui.com>

(cherry picked from commit 917df4f6ca)
This commit is contained in:
longtb 2022-12-10 12:23:44 +08:00 committed by Jay Chung
parent 750cf62641
commit c6b9afe878
2 changed files with 8 additions and 8 deletions

View File

@ -33,8 +33,8 @@ data-quality.jar.name=dolphinscheduler-data-quality-dev-SNAPSHOT.jar
| CheckFormula | <ul><li>Expected-Actual</li><li>Actual-Expected</li><li>(Actual/Expected)x100%</li><li>(Expected-Actual)/Expected x100%</li></ul> |
| Operator | =, >, >=, <, <=, != |
| ExpectedValue | <ul><li>FixValue</li><li>DailyAvg</li><li>WeeklyAvg</li><li>MonthlyAvg</li><li>Last7DayAvg</li><li>Last30DayAvg</li><li>SrcTableTotalRows</li><li>TargetTableTotalRows</li></ul> |
| Example |<ul><li>CheckFormulaExpected-Actual</li><li>Operator></li><li>Threshold0</li><li>ExpectedValueFixValue=9</li></ul>
| Example | <ul><li>CheckFormulaActual-Expected</li><li>Operator></li><li>Threshold0</li><li>ExpectedValueFixValue=9</li></ul> |
In the example, assuming that the actual value is 10, the operator is >, and the expected value is 9, then the result 10 -9 > 0 is true, which means that the row data in the empty column has exceeded the threshold, and the task is judged to fail.
# Task Operation Guide

View File

@ -44,12 +44,12 @@ data-quality.jar.name=dolphinscheduler-data-quality-dev-SNAPSHOT.jar
- 目标表总行数
- 例子
- 校验方式为:[Expected-Actual][期望值-实际值]
- [操作符]>
- [阈值]0
- 期望值类型:固定值=9。
假设实际值为10操作符为 >, 期望值为9那么结果 10 -9 > 0 为真,那就意味列为空的行数据已经超过阈值,任务被判定为失败
- 校验方式为:[Actual-Expected][实际值-期望值]
- [操作符]>
- [阈值]0
- 期望值类型:固定值=9。
假设实际值为10操作符为 >, 期望值为9那么结果 10 -9 > 0 为真,那就意味列为空的行数据已经超过阈值,任务被判定为失败
# 任务操作指南
## 单表检查之空值检查