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: Merge more of EsqlDataTypes into DataType #110105

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Jun 24, 2024

This moves a few more methods from EsqlDataTypes into DataType and makes some of the followup changes recommended in #109921.

This moves a few more methods from `EsqlDataTypes` into `DataType` and
makes some of the followup changes recommended in elastic#109921.
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jun 24, 2024
@elasticsearchmachine
Copy link
Collaborator

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

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. Thank you!

@@ -46,7 +52,7 @@ public DataType fromJava(Object value) {

@Override
public boolean isUnsupported(DataType type) {
return EsqlDataTypes.isUnsupported(type);
return type == DataType.UNSUPPORTED;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should just inline this too, while we're at it? Or in the next PR...

Copy link
Member Author

Choose a reason for hiding this comment

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

It's used in a while bunch of places. Maybe we should, but I don't want to here.

@nik9000 nik9000 merged commit f37b8dd into elastic:main Jun 26, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >non-issue 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.

None yet

3 participants