Skip to content

[ESQL] Ensure date/date_nanos implicit casting rule behind snapshot #130026

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

Conversation

fang-xing-esql
Copy link
Member

Resolves #130003

Ensure date/date_nanos implicit casting rule behind snapshot, when #127797 was merged, the rule DateMillisToNanosInEsRelation was not behind snapshot, and caused the release test above failed.

@fang-xing-esql fang-xing-esql added >bug auto-backport Automatically create backport pull requests when merged test-release Trigger CI checks against release build :Analytics/ES|QL AKA ESQL v8.19.0 v9.1.0 labels Jun 25, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @fang-xing-esql, I've created a changelog YAML for you.

@@ -1819,10 +1820,6 @@ private static boolean canConvertOriginalTypes(MultiTypeEsField multiTypeEsField

private static Expression typeSpecificConvert(ConvertFunction convert, Source source, DataType type, InvalidMappedField mtf) {
EsField field = new EsField(mtf.getName(), type, mtf.getProperties(), mtf.isAggregatable());
return typeSpecificConvert(convert, source, field);
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a small refactor.

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.

Thanks @fang-xing-esql , only super minor comments - please go ahead at your own discretion.

@fang-xing-esql fang-xing-esql added v9.1.0 v9.1.1 and removed test-release Trigger CI checks against release build labels Jul 2, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @fang-xing-esql, I've created a changelog YAML for you.

@fang-xing-esql
Copy link
Member Author

The failed release tests are not relevant to this PR, removed the test-releases label.

@fang-xing-esql fang-xing-esql marked this pull request as ready for review July 2, 2025 13:46
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jul 2, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @fang-xing-esql, I've created a changelog YAML for you.

Comment on lines 2 to 4
summary: Ensure date/date_nanos implicit casting rule behind snapshot
area: ES|QL
type: bug
Copy link
Contributor

Choose a reason for hiding this comment

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

This re-appeared - I think you'll have to mark this PR as >non-issue, otherwise the bot will probably insist on the changelog entry.

@fang-xing-esql fang-xing-esql merged commit c43a51d into elastic:main Jul 2, 2025
32 checks passed
fang-xing-esql added a commit to fang-xing-esql/Elasticsearch that referenced this pull request Jul 2, 2025
…lastic#130026)

* put date date_nanos implicit casting rule behind snapshot
fang-xing-esql added a commit to fang-xing-esql/Elasticsearch that referenced this pull request Jul 2, 2025
…lastic#130026)

* put date date_nanos implicit casting rule behind snapshot
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.19
9.1

@ioanatia ioanatia mentioned this pull request Jul 2, 2025
12 tasks
elasticsearchmachine pushed a commit that referenced this pull request Jul 2, 2025
…130026) (#130481)

* put date date_nanos implicit casting rule behind snapshot
elasticsearchmachine pushed a commit that referenced this pull request Jul 2, 2025
…130026) (#130482)

* put date date_nanos implicit casting rule behind snapshot
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 3, 2025
…lastic#130026)

* put date date_nanos implicit casting rule behind snapshot
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 >bug >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.19.0 v9.1.0 v9.1.1 v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] RestEsqlIT.testSuggestedCast (non-snapshot)
3 participants