Skip to content

Commit

Permalink
feat: support Identity in pruner (#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
danking authored Nov 21, 2024
1 parent a231494 commit 5a28b02
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 59 deletions.
9 changes: 8 additions & 1 deletion vortex-expr/src/identity.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
use std::any::Any;
use std::fmt::Display;
use std::sync::Arc;

use vortex_array::ArrayData;
use vortex_error::VortexResult;

use crate::{unbox_any, VortexExpr};
use crate::{unbox_any, ExprRef, VortexExpr};

#[derive(Debug, Eq, PartialEq)]
pub struct Identity;

impl Identity {
pub fn new_expr() -> ExprRef {
Arc::new(Identity)
}
}

impl Display for Identity {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "[]")
Expand Down
Loading

0 comments on commit 5a28b02

Please sign in to comment.