-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix FOR bug, also fix bench to compile #341
Conversation
vortex-fastlanes/src/for/compute.rs
Outdated
@@ -86,4 +94,31 @@ mod test { | |||
assert_eq!(scalar_at(&forarr, 1).unwrap(), 15.into()); | |||
assert_eq!(scalar_at(&forarr, 2).unwrap(), 19.into()); | |||
} | |||
|
|||
#[test] | |||
fn for_as_contiguous() { |
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 guess we should probably centralize 1-2 smoketests for each of the ArrayCompute
functions for all of the variants.
Ok, I think I fixed all of the errors in the benchmarks now.
Now the benchmarks complete without error which is nice. I can FLUP with a github action to run the benchmarks in a scheduled action to get faster feedback if things break |
Discussed offline about removing as_contiguous and reaffirming how flatten should work |
I believe this PR now addresses all of the stylistic comments. For the AsContiguous removal: I broke that out into a separate PR stacked on this branch: #346 Would love a review there of the structure, and maybe a discussion about how best to handle List and Extension dtyped-arrays |
Per the comments on #341 , this PR removes the AsContiguousFn trait and as_contiguous function entirely, and instead pushes the relevant details into the implementation of `ArrayFlatten::flatten` for the `ChunkedArray` type. A few questions I've bumped into while doing this refactor: * Can DType::List only reference primitive types? I see ListScalar, but it’s not clear to me how Vortex would encode e.g. `List<Struct>` or `List<List>` * **Answer**: Deferring for now as List DTypes not fully support yet anyway * How should this work for ExtensionArray? * **Answer**: ExtensionArray can contain a ChunkedArray for its internal storage Array
@robert3005 1. Fix issue with FoR compression where nullability was getting stripped, causing `compress` benchmark to fail 2. Fix some random tokio bs that was also causing `compress` benchmark to fail due to recursive runtime creations
@robert3005
compress
benchmark to failcompress
benchmark to fail due to recursive runtime creations