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

ESQL: Move expression classes into common package #105407

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

alex-spies
Copy link
Contributor

@alex-spies alex-spies commented Feb 12, 2024

There are some expressions both in org.elasticsearch.xpack.esql.evaluator and org.elasticsearch.xpack.esql.expression.
Move them all into org.elasticsearch.xpack.esql.expression.

All changed lines are mechanical.

@alex-spies alex-spies force-pushed the refactor-esql-exprs branch from ee6800a to e0643a6 Compare April 30, 2024 08:37
@elastic elastic deleted a comment from github-actions bot Apr 30, 2024
@alex-spies
Copy link
Contributor Author

Reviving this. Since the conflicts were too many, I started anew, branching from current main.

@alex-spies alex-spies marked this pull request as ready for review April 30, 2024 08:39
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Apr 30, 2024
@elasticsearchmachine
Copy link
Collaborator

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

Comment on lines +131 to +139
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.Equals;
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.EsqlBinaryComparison;
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.GreaterThan;
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.GreaterThanOrEqual;
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.In;
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.InsensitiveEquals;
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.LessThan;
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.LessThanOrEqual;
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.NotEquals;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This here is subtle. Luckily, the serialization uses the plain class name and thus shouldn't be affected by this refactoring - similar to this change in #107789.

Copy link
Member

@not-napoleon not-napoleon 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 for fixing this.

@alex-spies alex-spies merged commit b0f58ab into elastic:main Apr 30, 2024
15 checks passed
@alex-spies alex-spies deleted the refactor-esql-exprs branch April 30, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >refactoring Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants