Skip to content

Conversation

@codebrain
Copy link
Contributor

@codebrain codebrain commented Jul 9, 2019

Add nanosecond field mapper

elastic/elasticsearch#37755

russcam and others added 5 commits July 4, 2019 14:57
This commit updates the ScoreFunctionJsonFormatter to serialize only the
script inside of the script_score JSON object.

Fixes #3904

(cherry picked from commit ac60472)
This commit adds the time zone information for a DateTime within a DateMath type, when the DateTimeKind is Local or Utc. This behaviour aligns 7.x with 6.x.

Introduce StringBuilderCache for caching a StringBuilder per thread. Use of this can be extended in a later commit.

Fixes #3899
This commit changes the HttpConnection to not set Content on HttpRequestMessage when there is no PostData. The check is performed inside of Request and RequestAsync to avoid creating any content instance and allocations.

Pass RequestData through to _onStreamAvailable delegates so that HttpCompression, ConnectionSettings and PostData can be accessed on the passed instance.

Fixes #3907

(cherry picked from commit 90c2bf7)
This commit provides support for numbers with an exponent when reading WKT.

Fixes #3920

(cherry picked from commit 8386d4c)
@codebrain codebrain mentioned this pull request Jul 9, 2019
17 tasks
Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

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

I've left a comment.

PropertyFormatter also needs to be updated to deserialize date_nanos, and there should be some unit/integration tests.

@russcam
Copy link
Contributor

russcam commented Jul 15, 2019

Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

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

LGTM. Left a small comment

@codebrain codebrain changed the base branch from 7.1 to master July 16, 2019 09:21
@codebrain codebrain merged commit 806c928 into master Jul 16, 2019
codebrain added a commit that referenced this pull request Jul 16, 2019
This datatype is an addition to the date datatype.

However there is an important distinction between the two. The existing date datatype stores dates in millisecond resolution. The date_nanos data type stores dates in nanosecond resolution, which limits its range of dates from roughly 1970 to 2262, as dates are still stored as a long representing nanoseconds since the epoch.
@russcam russcam deleted the feature/7.1/date-nanos branch July 24, 2019 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants