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

AUTO_BUCKET is not working in the ES|QL notebook #264

Closed
liu-xiao-guo opened this issue Jun 7, 2024 · 1 comment · Fixed by #265
Closed

AUTO_BUCKET is not working in the ES|QL notebook #264

liu-xiao-guo opened this issue Jun 7, 2024 · 1 comment · Fixed by #265
Assignees

Comments

@liu-xiao-guo
Copy link

For the notebook at https://github.com/elastic/elasticsearch-labs/blob/main/notebooks/esql/esql-getting-started.ipynb, the following code is not working:

esql_query = """
FROM sample_data
| KEEP @timestamp
| EVAL bucket = AUTO_BUCKET(@timestamp, 24, "2023-10-23T00:00:00Z", "2023-10-23T23:59:59Z")
"""
response = client.esql.query(query=esql_query)
format_response(response)

The error message is shown as:

BadRequestError: BadRequestError(400, 'verification_exception', 'Found 1 problem\nline 4:17: Unknown function [AUTO_BUCKET], did you mean [bucket]?')

![image](https://github.com/elastic/elasticsearch-labs/assets/8455957/be2018cb-a9dd-46fd-a281-30b0c9de00c9)

@leemthompo leemthompo self-assigned this Jun 7, 2024
@liu-xiao-guo
Copy link
Author

https://ela.st/ql/ in the notebook does not exist as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants