public KustoResultSetTable executeKustoQuery(ClientImpl client, String query) {
KustoResultSetTable mainTableResult = null;
try {
KustoOperationResult results = client.execute(databaseName, query);
mainTableResult = results.getPrimaryResults();
} catch (DataServiceException | DataClientException e) {
errorHandler(e, "Error while retrieving results from kusto query!");
}
return mainTableResult;
}
上面的代码返回了这种类型的结果
Name | Age
XYZ AAA | 29
如何使用 Azure Kusto JavamainTableResult
对象获取名称列下第一行的值
预期的字符串输出 -"XYZ AAA"