Azure Data Explorer: delta-kusto error in parsing update policy

Elisa Piccin 0 Reputation points
2023-08-28T18:24:42.6566667+00:00

Hi,

I'm trying to follow this tutorial https://github.com/microsoft/delta-kusto/blob/main/documentation/tutorials/overview-tutorial/README.md

and at this step

delta-kusto -p download-dev.yaml -o tokenProvider.login.tenantId=$tenantId tokenProvider.login.clientId=$clientId tokenProvider.login.secret=$secret jobs.download-dev.target.adx.clusterUri=$clusterUri)

I'm getting an error "Error: Issue parsing script Exception encountered: System.InvalidOperationException ; Function body was expected to be surrounded by curly brace but isn't: {..."

My update policy is something like this:

.create-or-alter function with (docstring = "Ingest raw telemetry data",folder = "ingestprojection") ParseTelemetry() {
let JobNumbers = 
   .... ;


InjectionMoulding
| mv-expand values
| extend convertedTimestamp = tolong(timestamp) * 1ms
| project ....
....
}

Did anyone experience a similar issue and/or know how to solve it?

Thanks,

Elisa

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
367 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Elisa Piccin 0 Reputation points
    2023-08-28T19:04:51.8833333+00:00

    The issue was the blank line after the let; command. After removing the blank line, everything is working properly. 😅