Skip to content
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

[FEATURE] Support optional tags field on _async_query API #2553

Open
noCharger opened this issue Mar 12, 2024 · 0 comments
Open

[FEATURE] Support optional tags field on _async_query API #2553

noCharger opened this issue Mar 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@noCharger
Copy link
Contributor

Is your feature request related to a problem?

A clear and concise description of what the problem is, e.g. I'm always frustrated when [...]

I want to track out the different sources that are executing '_async_query'.

What solution would you like?

A clear and concise description of what you want to happen.

Assign tags alone with the _async_query API, which has a one-to-one mapping to the queryid. These tags can be used on a variety of data source types, such as s3_glue, and provided to emr job runs.

API example:

curl --location 'http://localhost:9200/_plugins/_async_query' \
--header 'Content-Type: application/json' \
--data '{
    "datasource" : "my_glue",
    "lang" : "sql",
    "query" : "select * from my_glue.default.http_logs limit 10"
    "tags": {
        "traceId": "xxxxx",
        "source": "admin"
     }
}'

Parameter Constraints

Type: String to string map
Map Entries: Minimum number of 0 items. Maximum number of 10 items.
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Key Pattern: ^[A-Za-z0-9 /_.:=+@-]+$
Value Length Constraints: Minimum length of 0. Maximum length of 256.
Value Pattern: ^[A-Za-z0-9 /_.:=+@-]*$
Required: No

Ref: https://docs.aws.amazon.com/emr-serverless/latest/APIReference/API_StartJobRun.html#emrserverless-StartJobRun-request-tags

What alternatives have you considered?

A clear and concise description of any alternative solutions or features you've considered.

Define tags during data source creation, which requires creating multiple identical data source with different tags.

@noCharger noCharger added enhancement New feature or request untriaged labels Mar 12, 2024
@noCharger noCharger changed the title [FEATURE] Support optional tags _async_query [FEATURE] Support optional tags field on _async_query API Mar 12, 2024
@Swiddis Swiddis removed the untriaged label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants