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

Add a consistent way to parse dates #61105

Merged

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Aug 13, 2020

This adds a parse method to date valued runtime_scripts that
converts any Object into a long using the same mechanism that
indexing a date uses.

We also use this new method to expand our test that run's core's
integration tests against runtime fields to date values fields.
Previously we couldn't do that because we didn't have a consistent way
to parse the field.

This adds a `parse` method to `date` valued `runtime_script`s that
converts any `Object` into a `long` using the same mechanism that
indexing a `date` uses.

We also use this new method to expand our test that run's core's
integration tests against runtime fields to `date` values fields.
Previously we couldn't do that because we didn't have a consistent way
to parse the field.
@nik9000 nik9000 added the :Search/Search Search-related issues that do not fall into other categories label Aug 13, 2020
@nik9000 nik9000 requested a review from javanna August 13, 2020 15:08
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

@elasticmachine elasticmachine added the Team:Search Meta label for search team label Aug 13, 2020
Copy link
Member

@javanna javanna left a comment

Choose a reason for hiding this comment

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

LGTM

@javanna javanna mentioned this pull request Aug 17, 2020
30 tasks
@nik9000 nik9000 merged commit 3870b6f into elastic:feature/runtime_fields Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants