Azure Kusto Java SDK get all columns of query results

526 Views Asked by At

I'm using the Azure Kusto Java SDK v2.0.1 with Scala over Java8.

I'm executing some query:

val query = " ... "
val tenantId = " ... "
val queryResponse = client.execute(tenantId, query)
val queryResponseResults = queryResponse.getPrimaryResults

I want to convert the given data structure to JSON eventually, so I want to get all columns, but I can't seem to find some kind of getColumns.

While debugging I see the object (KustoResultSetTable) has fields columnsAsArray (which is exactly what I want) and columns - but they are private and I didn't find any getters.

1

There are 1 best solutions below

3
Ohad Bitton On BEST ANSWER

A getter will be added in the next version