Skip to content

Conversation

@astefan
Copy link
Contributor

@astefan astefan commented Aug 19, 2024

The String implicit casting is resolving a string Literal to an UnresolvedAttribute if the conversion fails and it's, also, adding a specific error message. But, later in the resolving process this message is lost when ES|QL tries to find field names suggestions. This PR stops the resolution if there is already an UnresolvedAttribute with a specific error message (like the one coming from implicit casting resolution).

Fixes #111967

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Aug 19, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Hi @astefan, I've created a changelog YAML for you.

@alex-spies
Copy link
Contributor

Argh, sorry @fang-xing-esql , I broke it! This used to work before this tweak #111475 (comment)

I think it's nicer, though, that we don't have to resort to UnsupportedAttribute just to pass through a validation message.

Copy link
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @astefan !

Copy link
Member

@fang-xing-esql fang-xing-esql left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@astefan astefan merged commit c80b796 into elastic:main Aug 20, 2024
lkts pushed a commit to lkts/elasticsearch that referenced this pull request Aug 20, 2024
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this pull request Sep 4, 2024
davidkyle pushed a commit to davidkyle/elasticsearch that referenced this pull request Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESQL: incorrect "Unknown column" resolution error message

4 participants