-
Notifications
You must be signed in to change notification settings - Fork 145
Part 2 of making Variant a canonical array #7143
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
|
|
||
| use vortex_error::VortexExpect; | ||
| use vortex_error::VortexResult; | ||
| use vortex_error::vortex_bail; | ||
|
|
||
| use crate::Canonical; | ||
| use crate::ExecutionCtx; | ||
|
|
@@ -50,6 +51,9 @@ pub fn take_canonical( | |
| } | ||
| Canonical::Struct(a) => Canonical::Struct(take_struct(&a, codes)), | ||
| Canonical::Extension(a) => Canonical::Extension(take_extension(&a, codes, ctx)), | ||
| Canonical::Variant(_) => { | ||
| vortex_bail!("Variant arrays don't support Take") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it not worth doing the push-down now? |
||
| } | ||
| }) | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ use std::sync::Arc; | |
|
|
||
| use vortex_error::VortexExpect; | ||
| use vortex_error::VortexResult; | ||
| use vortex_error::vortex_panic; | ||
| use vortex_mask::Mask; | ||
| use vortex_mask::MaskValues; | ||
|
|
||
|
|
@@ -94,5 +95,8 @@ pub(super) fn execute_filter(canonical: Canonical, mask: &Arc<MaskValues>) -> Ca | |
| .vortex_expect("ExtensionArray storage type somehow could not be filtered"); | ||
| Canonical::Extension(ExtensionArray::new(a.ext_dtype().clone(), filtered_storage)) | ||
| } | ||
| Canonical::Variant(_) => { | ||
| vortex_panic!("Variant arrays don't support filtering") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it not worth doing the push-down now? |
||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| use std::ops::BitAnd; | ||
|
|
||
| use vortex_error::VortexResult; | ||
| use vortex_error::vortex_bail; | ||
| use vortex_mask::Mask; | ||
|
|
||
| use crate::Canonical; | ||
|
|
@@ -53,6 +54,9 @@ pub fn mask_validity_canonical( | |
| Canonical::Extension(a) => { | ||
| Canonical::Extension(mask_validity_extension(a, validity_mask, ctx)?) | ||
| } | ||
| Canonical::Variant(_) => { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it not worth doing the push-down now? |
||
| vortex_bail!("Variant arrays don't masking validity") | ||
| } | ||
| }) | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.