我是 Kusto 的初学者,我正在尝试创建一个查询,该查询fruit
基于data
包含特定子字符串的另一个 () 列返回一个不同的 () 列。
在下面的示例中,如果在列awesome
中找到“”子字符串,则返回该子字符串,如果没有,则返回但始终保持第一列的独特性。data
"found"
"not found"
let Fruit = datatable(fruit:string, data:string)
[
"apple", "awesome",
"apple", "beast",
"banana", "a beast",
"orange", "awesome cat",
"orange", "blah"
];
所以所需的输出将是:
"apple", "found",
"banana", "not found",
"orange", "found",