Open johnib opened 3 years ago
Hey,
Could not find the place where the parameters are converted to their kusto types, as described here.
parameters
For example, if I specify a date parameter:
clientRequestProperties.setParameter('startTime', new Date().toISOString());
Then something in your package will wrap the value with datetime(<value>). However, if I provide an array of values:
datetime(<value>)
clientRequestProperties.setParameter('ids', [1,2,3]);
The package will not sanitize it to dynamic(<value>).
dynamic(<value>)
Tried looking for the actual code doing this sanitization, however I couldn't find it.
https://github.com/Azure/azure-kusto-node/blob/6f774914049f076a8d6cfbe0a8231b5c962e8ba8/azure-kusto-data/source/clientRequestProperties.ts#L64-L80
Hi @johnib ,
We will add this to our backlog.
As a workaround, please explicitly add the dynamic wrapper as needed.
CC @yogilad
Hey,
Could not find the place where the
parameters
are converted to their kusto types, as described here.For example, if I specify a date parameter:
Then something in your package will wrap the value with
datetime(<value>)
. However, if I provide an array of values:The package will not sanitize it to
dynamic(<value>)
.Tried looking for the actual code doing this sanitization, however I couldn't find it.
https://github.com/Azure/azure-kusto-node/blob/6f774914049f076a8d6cfbe0a8231b5c962e8ba8/azure-kusto-data/source/clientRequestProperties.ts#L64-L80