Skip to content

ESQL: Rename Validatable iface to PostLogicalOptimizationVerificationAware#119985

Merged
elasticsearchmachine merged 3 commits intoelastic:mainfrom
bpintea:enh/post_logcal_opt_aware
Jan 13, 2025
Merged

ESQL: Rename Validatable iface to PostLogicalOptimizationVerificationAware#119985
elasticsearchmachine merged 3 commits intoelastic:mainfrom
bpintea:enh/post_logcal_opt_aware

Conversation

@bpintea
Copy link
Contributor

@bpintea bpintea commented Jan 10, 2025

Rename interface to align it with the similar post-analysis interfaces.

Related #119798.

Rename interface to align it with the similar post-analysis interfaces.
@bpintea bpintea added >refactoring auto-backport Automatically create backport pull requests when merged :Analytics/ES|QL AKA ESQL v9.0.0 v8.18.0 labels Jan 10, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jan 10, 2025
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Member

@costin costin left a comment

Choose a reason for hiding this comment

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

LGTM. The only comment is around naming - PostLogicalOptimizationVerificationAware is very explicit but also long; I wonder if we should drop the Logical prefix and assume it's explicit since I don't expect a PostPhysicalOptimizationVerificationAware interface any time soon.

@bpintea bpintea added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jan 13, 2025
@elasticsearchmachine elasticsearchmachine merged commit 0e85d40 into elastic:main Jan 13, 2025
@bpintea bpintea deleted the enh/post_logcal_opt_aware branch January 13, 2025 13:33
bpintea added a commit to bpintea/elasticsearch that referenced this pull request Jan 13, 2025
…Aware (elastic#119985)

Rename interface to align it with the similar post-analysis interfaces.

Related elastic#119798.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x
elasticsearchmachine pushed a commit that referenced this pull request Jan 13, 2025
…Aware (#119985) (#120051)

Rename interface to align it with the similar post-analysis interfaces.

Related #119798.
Copy link
Member

@costin costin left a comment

Choose a reason for hiding this comment

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

Discovered some left overs.

* </pre>
*
*/
void postLogicalOptimizationVerification(Failures failures);
Copy link
Member

Choose a reason for hiding this comment

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

The method name should be aligned with the class name (including in the javadoc):
postLogicalOptimizationVerification --> postOptimizationVerification

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Opened #120307.

package org.elasticsearch.xpack.esql.capabilities;

import org.elasticsearch.xpack.esql.common.Failures;
import org.elasticsearch.xpack.esql.expression.function.grouping.Bucket;
Copy link
Member

Choose a reason for hiding this comment

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

Move the class package into the javadoc or better yet find a different example - it's best to not extend unnecessary packages in the documentation since it unnecessarily ties this interface to Bucket.

martijnvg pushed a commit to martijnvg/elasticsearch that referenced this pull request Jan 14, 2025
…Aware (elastic#119985)

Rename interface to align it with the similar post-analysis interfaces.

Related elastic#119798.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >refactoring Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.18.0 v9.0.0

3 participants