-
Notifications
You must be signed in to change notification settings - Fork 222
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
feat!: simplify take row api #2664
Conversation
Windows failure is not relevant |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2664 +/- ##
==========================================
- Coverage 79.79% 79.78% -0.01%
==========================================
Files 224 224
Lines 65871 65871
Branches 65871 65871
==========================================
- Hits 52562 52558 -4
- Misses 10228 10232 +4
Partials 3081 3081
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
rust/lance/src/dataset.rs
Outdated
impl From<&Schema> for ProjectionRequest { | ||
fn from(schema: &Schema) -> Self { | ||
Self::from(schema.clone()) | ||
} | ||
} |
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.
I'd rather not have this personally. I don't like the idea of there being a hidden clone in the call. The caller can just do take(row_indices, schema.clone())
, and then it's clearer the schema
is being cloned there.
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.
Fixed.
Closes #2610 * Supports subschemas in `merge_insert` for updates only * Inserts and deletes left as TODO * Field id `-2` is now reserved as a field "tombstone". These tombstones are fields that are no longer in the schema, usually because those fields are now in a different data file. * Fixed a bug in `Merger` where statistics were reset on each batch.
…rust 1.80 (#2641) Co-authored-by: Will Jones <willjones127@gmail.com> Co-authored-by: Lance Release <lance-dev@lancedb.com> Co-authored-by: rmeng <rob.xu.meng@gmail.com>
Thanks for doing this. I like this interface a lot better. |
Change
take_rows
andtake
APIs to allow directly takeSchema
again.