-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Enable optimizedText for CBOR #132542
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
Enable optimizedText for CBOR #132542
Conversation
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
Pinging @elastic/es-core-infra (Team:Core/Infra) |
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.
The outline looks good, but I think there are a couple of bugs related to the parser state. We want to avoid disrupting the parser so that it still works as normal even after calling getValueAsText()
.
libs/x-content/impl/src/main/java/org/elasticsearch/xcontent/provider/cbor/ESCborParser.java
Outdated
Show resolved
Hide resolved
...x-content/impl/src/test/java/org/elasticsearch/xcontent/provider/cbor/ESCborParserTests.java
Outdated
Show resolved
Hide resolved
Doesn't need to decode, just counts the number of characters while iterating over the utf8-encoded bytes.
Good catch, thanks! |
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.
LGTM, thanks Felix!
No description provided.