我正在尝试从编译时未知的表中动态创建查询和过滤器(具体来说,id如果我正在查询requests表,我想过滤,operation_ParentId否则)。以下失败,因为id不是表中的列exceptions:
let dataset = exceptions;
dataset
| where (itemType == "request" and id == "test") or (itemType != "request" and operation_ParentId == "test")
提前致谢!