Skip to content

TSDB: Add unsigned_long dimension fields to _tsid#81284

Merged
csoulios merged 3 commits intoelastic:masterfrom
csoulios:tsid-unsigned-long
Dec 9, 2021
Merged

TSDB: Add unsigned_long dimension fields to _tsid#81284
csoulios merged 3 commits intoelastic:masterfrom
csoulios:tsid-unsigned-long

Conversation

@csoulios
Copy link
Copy Markdown
Contributor

@csoulios csoulios commented Dec 2, 2021

This PR builds on the work added in #80276 that generates the _tsid field for keyword, ip and number dimension fields.

It adds support for unsigned_long dimension fields.

@csoulios csoulios added v8.0.0 :StorageEngine/TSDB You know, for Metrics labels Dec 2, 2021
@csoulios csoulios requested a review from nik9000 December 2, 2021 23:33
@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Dec 2, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

- match: {hits.hits.1.fields.ul: [9223372036854775807]}

---
# TODO: Sort order is wrong here. Probably this is caused by the encoding of unsigned_long
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sort order is broken when unsigned_long field is encoded in the _tsid. However, sort order is always consistent. Is there an easy fix for this? Can this be a problem we can live with?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think so long as its consistent it's ok - though we should probably ask around a bit. I wonder what the sort order is for signed longs right now. I'll bet negative comes after positive because we're sorting bytes not numbers.

@csoulios
Copy link
Copy Markdown
Contributor Author

csoulios commented Dec 9, 2021

@elasticmachine update branch

@csoulios csoulios merged commit 524785f into elastic:master Dec 9, 2021
@csoulios csoulios deleted the tsid-unsigned-long branch December 9, 2021 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :StorageEngine/TSDB You know, for Metrics Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.0.0-rc1 v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants