-
Notifications
You must be signed in to change notification settings - Fork 25k
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
XPack: core/ccr/Security-cli migration to java-time #38415
Changes from 4 commits
2d3bf55
375ce19
0ba2cf6
3ebfbad
f4ad47d
82a21f9
edf9204
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,9 +61,9 @@ | |
import org.elasticsearch.xpack.rollup.RollupJobIdentifierUtils; | ||
import org.elasticsearch.xpack.rollup.RollupRequestTranslator; | ||
import org.elasticsearch.xpack.rollup.RollupResponseTranslator; | ||
import org.joda.time.DateTimeZone; | ||
|
||
import java.io.IOException; | ||
import java.time.ZoneOffset; | ||
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
import java.util.Collections; | ||
|
@@ -288,7 +288,7 @@ static QueryBuilder rewriteQuery(QueryBuilder builder, Set<RollupJobCaps> jobCap | |
String fieldName = range.fieldName(); | ||
// Many range queries don't include the timezone because the default is UTC, but the query | ||
// builder will return null so we need to set it here | ||
String timeZone = range.timeZone() == null ? DateTimeZone.UTC.toString() : range.timeZone(); | ||
String timeZone = range.timeZone() == null ? ZoneOffset.UTC.toString() : range.timeZone(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is read from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please open an issue for that, so we do not forget about it |
||
|
||
String rewrittenFieldName = rewriteFieldName(jobCaps, RangeQueryBuilder.NAME, fieldName, timeZone); | ||
RangeQueryBuilder rewritten = new RangeQueryBuilder(rewrittenFieldName) | ||
|
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.
does this get serialized over the wire somewhere? If so we may need to convert it using
DateUtils
?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 read in
ValuesSourceAggregationBuilder
so I guess it is already taken care of?with
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.
++