-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide scaler for Azure Data Explorer #1488
Comments
It's a really good improvement. I'd like to work on this one. |
Awesome, thanks a ton @yasiboni-max! |
Hi. Was there any progress made ? |
I haven't heard from @yasiboni-max so if you'd like to work on it - Be my guest! Ok for you @yasiboni-max ? |
@tomkerkhove I actually finished the implementation, but then I saw that you asked to use the SDK so I started to do so. |
I'm looking for a workaround for this issue so I'll be able to complete this PR entirely. |
Try this:
// GetADXSingleRowFromQuery returns the only row from an ADX query result.
If there are more rows, an error is returned.
func GetADXSingleRowFromQuery(ctx context.Context, query string, client
querier) (*table.Row, error) {
// Execute the query.
iter, err := client.Query(ctx, "database", kusto.NewStmt("", kusto.
UnsafeStmt(unsafe.Stmt { true, false})).UnsafeAdd(query))
if err != nil {
return nil, fmt.Errorf("failed to execute query %s: %v", query, err)
}
defer iter.Stop()
// Get the first (and only result) that should have only a single
numerical column.
row, err := iter.Next()
if err != nil {
return nil, fmt.Errorf("failed to get query %s result: %v", query,
err)
}
_, err = iter.Next()
if (err != io.EOF) {
return nil, fmt.Errorf("Query %s result had more than a single
result row", query)
}
return row, nil
}
…On Mon, Jan 31, 2022 at 4:59 PM yasiboni-max ***@***.***> wrote:
I'm looking for a workaround for this issue so I'll be able to complete
this PR entirely.
—
Reply to this email directly, view it on GitHub
<#1488 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATJ7GQ5WGLI3VPVHX2X5G3UY2PU5ANCNFSM4VY6KJCQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi @tomkerkhove, my e2e test requires some setup in the subscription that being used for that:
Can you please elaborate with the right procedure to do so? I didn't find (or missed) the guidelines in the contribution guide for that. |
We don't allow contributors to do this for now but if you can provide some more information then I'm happy to do everything that is required. |
Signed-off-by: Yarden Siboni <yardensib@gmail.com>
Signed-off-by: Yarden Siboni <yardensib@gmail.com>
Signed-off-by: Yarden Siboni <yardensib@gmail.com>
Signed-off-by: Yarden Siboni <yardensib@gmail.com>
Sure, no problem. Few requirements for e2e:
Edit: Alternatively, you can send me database name and cluster endpoint and I'll add them to e2e test files keda pr: #2627 |
Signed-off-by: Yarden Siboni <yasiboni@microsoft.com>
Signed-off-by: Yarden Siboni <yasiboni@microsoft.com>
Signed-off-by: Yarden Siboni <yasiboni@microsoft.com>
Relates to kedacore#1488 Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>
e2e variables are added in #2643 but with different names. Do note that the URI is currently the URI and not the Data Ingestion URI: |
Signed-off-by: Yarden Siboni <yasiboni@microsoft.com>
Thank you for the contribution @yasiboni 🎉 |
Co-authored-by: Yarden Siboni <yasiboni@microsoft.com> Signed-off-by: Ram Cohen <ram.cohen@gmail.com>
A clear and concise description of what scaler you'd like to use and how you'd want to use it:
The text was updated successfully, but these errors were encountered: