Add literal contains filters across source queries and analysis context
This commit is contained in:
@@ -115,11 +115,11 @@ QUALITY_DATA_SCHEMA: dict[str, Any] = {
|
||||
"field": {"type": "string", "minLength": 1},
|
||||
"stages": {"type": "array", "minItems": 1, "maxItems": 2,
|
||||
"items": {"type": "string", "enum": ["black", "bright"]}},
|
||||
"operator": {"type": "string", "enum": ["in", "not_in", "is_empty", "not_empty"]},
|
||||
"operator": {"type": "string", "enum": ["in", "not_in", "contains", "is_empty", "not_empty"]},
|
||||
"values": {"type": "array", "minItems": 1, "maxItems": 50,
|
||||
"items": {"type": "string", "maxLength": 256}},
|
||||
}, "required": ["field", "stages", "operator"]},
|
||||
"description": "仅query/compare/rank/investigate/defects使用。必须是当前catalog.sourceFields授权的完整替换列表;null或[]清除全部。规则AND、values OR,文本大小写、空格及前导零按原文匹配。is_empty/not_empty不得带values。"},
|
||||
"description": "仅query/compare/rank/investigate/defects使用。必须是当前catalog.sourceFields授权的完整替换列表;null或[]清除全部。规则AND、values OR;in/not_in匹配完整文本值,contains按原文作字面子串匹配(MySQL LOCATE),不做关键字归一化,大小写、空格及前导零保留原文。每条文本规则提供1到50个不超过256字符的值;is_empty/not_empty不得带values。"},
|
||||
"view": {"type": "string", "enum": ["overall", "department", "group", "product", "projectGroup"], "description": "query 的正式分组视图;changes 仅支持非 overall 维度。"},
|
||||
"stage": {"type": ["string", "null"], "enum": ["black", "bright", None], "description": "top/details/defects/investigate必须明确black/bright。rank单阶段传black/bright;rank的metric=scrapWeight且stage省略或null时,合计黑片+亮片报废总重全量排序,并保留正式综合合格率。投入重量rank仍必须指定阶段。changes可选,未传为综合范围。"},
|
||||
"dimension": {"type": "string", "enum": ["category", "defect", "product", "department", "group", "projectGroup"], "description": "top模式仅category/product/department/group/projectGroup,不能用defect;具体缺陷TOP必须使用mode=defects、dimension=defect。product是规格。changes 使用 product/department/group/projectGroup。defects 使用 defect 或 product;未指定具体 defect 字段时,省略 dimension 默认按 defect 查询阶段具体缺陷。"},
|
||||
|
||||
Reference in New Issue
Block a user