-
Notifications
You must be signed in to change notification settings - Fork 25.3k
[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
[ESQL] Ensure date/date_nanos implicit casting rule behind snapshot #130026
Conversation
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); |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/Analyzer.java
Outdated
Show resolved
Hide resolved
Hi @fang-xing-esql, I've created a changelog YAML for you. |
The failed release tests are not relevant to this PR, removed the test-releases label. |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Hi @fang-xing-esql, I've created a changelog YAML for you. |
docs/changelog/130026.yaml
Outdated
summary: Ensure date/date_nanos implicit casting rule behind snapshot | ||
area: ES|QL | ||
type: bug |
There was a problem hiding this comment.
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.
…lastic#130026) * put date date_nanos implicit casting rule behind snapshot
…lastic#130026) * put date date_nanos implicit casting rule behind snapshot
…lastic#130026) * put date date_nanos implicit casting rule behind snapshot
Resolves #130003
Ensure
date
/date_nanos
implicit casting rule behind snapshot, when #127797 was merged, the ruleDateMillisToNanosInEsRelation
was not behind snapshot, and caused the release test above failed.