Skip to content

Conversation

@celeste0-0sec
Copy link
Contributor

This change corrects identifier escaping in elasticsearch/esql/esql.py by properly assigning the result of str.replace() back to the local variable before wrapping the identifier in backticks. Previously the replace() call produced a new string that was discarded; this leaves inner backticks unescaped. The patch ensures internal backticks are doubled so the rendered ES|QL identifier is quoted correctly.

@cla-checker-service
Copy link

cla-checker-service bot commented Nov 8, 2025

💚 CLA has been signed

@miguelgrinberg
Copy link
Contributor

@celeste0-0sec Thanks for the bug fix! Can you please sign the CLA so that I can apply this change?

@miguelgrinberg
Copy link
Contributor

@celeste0-0sec I'm unable to merge this until you sign the CLA. If you already signed, the issue is that you signed with an email that is different from the one you are using in this PR. Please sign again, making sure you use the same email. Thanks!

@pquentin
Copy link
Member

I triggered the CLA again and can confirm that it was signed, thank you!

@pquentin
Copy link
Member

buildkite test this please

@pquentin
Copy link
Member

buildkite test this please

@miguelgrinberg miguelgrinberg merged commit fa8fe72 into elastic:main Nov 20, 2025
18 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 20, 2025
Co-authored-by: Quentin Pradet <[email protected]>
(cherry picked from commit fa8fe72)
github-actions bot pushed a commit that referenced this pull request Nov 20, 2025
Co-authored-by: Quentin Pradet <[email protected]>
(cherry picked from commit fa8fe72)
github-actions bot pushed a commit that referenced this pull request Nov 20, 2025
Co-authored-by: Quentin Pradet <[email protected]>
(cherry picked from commit fa8fe72)
github-actions bot pushed a commit that referenced this pull request Nov 20, 2025
Co-authored-by: Quentin Pradet <[email protected]>
(cherry picked from commit fa8fe72)
miguelgrinberg pushed a commit that referenced this pull request Nov 20, 2025
(cherry picked from commit fa8fe72)

Co-authored-by: celeste0-0sec <[email protected]>
Co-authored-by: Quentin Pradet <[email protected]>
miguelgrinberg pushed a commit that referenced this pull request Nov 20, 2025
(cherry picked from commit fa8fe72)

Co-authored-by: celeste0-0sec <[email protected]>
Co-authored-by: Quentin Pradet <[email protected]>
miguelgrinberg pushed a commit that referenced this pull request Nov 20, 2025
(cherry picked from commit fa8fe72)

Co-authored-by: celeste0-0sec <[email protected]>
Co-authored-by: Quentin Pradet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants