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

SQL: Move internals from Joda to java.time #35649

Merged
merged 5 commits into from Nov 17, 2018

Conversation

costin
Copy link
Member

@costin costin commented Nov 16, 2018

Reduce/remove usage of Joda through-out the SQL processors and functions
Use ZonedDateTime wherever possible instead of long/tzId

Fix #35633

Try to remove usage of Joda through-out the processors and functions
Use ZonedDateTime wherever possible instead of long/tzId

Fix elastic#35633
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@costin
Copy link
Member Author

costin commented Nov 16, 2018

This impacts #35521

Copy link
Contributor

@astefan astefan left a comment

Choose a reason for hiding this comment

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

Left two comments, but LGTM otherwise.

return ZonedDateTime.ofInstant(Instant.ofEpochMilli(millis), id);
}

public static ZonedDateTime of(String dateFormat) {
Copy link
Contributor

Choose a reason for hiding this comment

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

More or less same comment here (about the UTC "default" representation).

@costin costin merged commit f8e333b into elastic:master Nov 17, 2018
@costin
Copy link
Member Author

costin commented Nov 17, 2018

@spinscale just pinging you as I'm sure there are future improvements as the transition to java.time happens.
Danke!

@costin costin deleted the joda-to-javatime branch November 17, 2018 13:31
costin added a commit that referenced this pull request Nov 17, 2018
Remove/Limit usage of Joda through-out the processors and functions
Use ZonedDateTime wherever possible instead of long/tzId

Fix #35633

(cherry picked from commit f8e333b)
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Nov 17, 2018
* master: (59 commits)
  SQL: Move internals from Joda to java.time (elastic#35649)
  Add HLRC docs for Get Lifecycle Policy (elastic#35612)
  Align RolloverStep's name with other step names (elastic#35655)
  Watcher: Use joda method to get local TZ (elastic#35608)
  Fix line length for org.elasticsearch.action.* files (elastic#35607)
  Remove use of AbstractComponent in server (elastic#35444)
  Deprecate types in count and msearch. (elastic#35421)
  Refactor an ambigious TermVectorsRequest constructor. (elastic#35614)
  [Scripting] Use Number as a return value for BucketAggregationScript (elastic#35653)
  Removes AbstractComponent from several classes (elastic#35566)
  [DOCS] Add beta warning to ILM pages. (elastic#35571)
  Deprecate types in validate query requests. (elastic#35575)
  Unmute BuildExamplePluginsIT
  Revert "AwaitsFix the RecoveryIT suite - see elastic#35597"
  Revert "[RCI] Check blocks while having index shard permit in TransportReplicationAction (elastic#35332)"
  Remove remaining line length violations for o.e.action.admin.cluster (elastic#35156)
  ML: Adjusing BWC version post backport to 6.6 (elastic#35605)
  [TEST] Replace fields in response with actual values
  Remove usages of CharSequence in Sets (elastic#35501)
  AwaitsFix the RecoveryIT suite - see elastic#35597
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants