-
Notifications
You must be signed in to change notification settings - Fork 25.6k
T digest csv test support #138391
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
Open
not-napoleon
wants to merge
36
commits into
elastic:main
Choose a base branch
from
not-napoleon:t-digest-csv-test-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+708
−67
Open
T digest csv test support #138391
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
8c41366
wiring up CSV tests (in progress)
not-napoleon b63668b
I'm not proud of this, but it works and it only took an hour
not-napoleon c205ddb
wire up the parser, now that it's visible
not-napoleon 0b3b329
[CI] Auto commit changes from spotless
f6022dc
checkpoint, doesn't compile
not-napoleon fc5e497
checkpoint, doesn't compile
not-napoleon 0105c0b
Merge branch 'main' into t-digest-csv-test-support
not-napoleon 7108827
element type wired up enough to compile the tests
not-napoleon bc252a5
escape commas in the CSV
not-napoleon 40e6415
[CI] Auto commit changes from spotless
bb7174b
minor test tweaks that don't fix anything
not-napoleon 840cc55
parsing works. It's awful, but it works
not-napoleon 7ea1073
better parsing solution, thanks Dima!
not-napoleon bd72b1a
actually implement building the block
not-napoleon d7f463d
Merge remote-tracking branch 'refs/remotes/not-napoleon/t-digest-csv-…
not-napoleon f0a629e
[CI] Auto commit changes from spotless
b89bcef
turn no commits into todos
not-napoleon 24e0bf9
Merge remote-tracking branch 'refs/remotes/not-napoleon/t-digest-csv-…
not-napoleon ae17da7
Merge branch 'main' into t-digest-csv-test-support
not-napoleon 3bbac10
Merge branch 'main' into t-digest-csv-test-support
not-napoleon 4e42f39
fix element type usages in tests
not-napoleon b76505f
Don't load tdigest fields in CSV tests where it's not supported
not-napoleon 3175b41
fix license headers
not-napoleon 85c3417
minor cleanup
not-napoleon 3f972ea
PR feedback
not-napoleon adb3106
test invariants in the array block
not-napoleon de3eabf
[CI] Auto commit changes from spotless
8eb398d
Merge branch 'main' into t-digest-csv-test-support
not-napoleon ac22a03
just do what ExponentialHistogram does
not-napoleon 37fc1fc
[CI] Auto commit changes from spotless
d2c7fc1
gate other versions of CSV tests on the capabilities
not-napoleon dd93cd5
skip TDigest in BlockBuilderCopyFrom tests
not-napoleon 9e8e41c
Merge remote-tracking branch 'refs/remotes/not-napoleon/t-digest-csv-…
not-napoleon ebe9dcf
[CI] Auto commit changes from spotless
6747153
fill in some other methods on the block builder
not-napoleon 5635256
Merge remote-tracking branch 'refs/remotes/not-napoleon/t-digest-csv-…
not-napoleon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
libs/tdigest/src/main/java/org/elasticsearch/tdigest/parsing/package-info.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /* | ||
| * Licensed to Elasticsearch B.V. under one or more contributor | ||
| * license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright | ||
| * ownership. Elasticsearch B.V. licenses this file to you under | ||
| * the Apache License, Version 2.0 (the "License"); you may | ||
| * not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| * | ||
| * This project is based on a modification of https://github.com/tdunning/t-digest which is licensed under the Apache 2.0 License. | ||
| */ | ||
|
|
||
| /** | ||
| * Parsing package contains Elasticsearch specific classes for serializing and deserializing | ||
| * t-digests from various formats via Elasticsearch's XContent abstraction layer. | ||
| */ | ||
|
|
||
| package org.elasticsearch.tdigest.parsing; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this commented-out code intentionally in this PR?
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.
Yes, although I suppose I could delete it for this PR. This PR is focused on loading the field into the CSV tests, and the associated
ElementTypework. As you can see, that's already over 500 lines of change. In the interest of readability, I decided to move the data type itself to the next PR, since that could easily be another 500 lines.