Skip to content

Commit 5adc437

Browse files
authored
Unify id creation for ScalarFns and rename is_null to vortex.is_null (#7325)
Use ScalarFnId::from instead of new_ref and rename is_null fn to vortex.is_null Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent 2e00050 commit 5adc437

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

vortex-array/src/scalar_fn/fns/dynamic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl ScalarFnVTable for DynamicComparison {
4646
type Options = DynamicComparisonExpr;
4747

4848
fn id(&self) -> ScalarFnId {
49-
ScalarFnId::new_ref("vortex.dynamic")
49+
ScalarFnId::from("vortex.dynamic")
5050
}
5151

5252
fn arity(&self, _options: &Self::Options) -> Arity {

vortex-array/src/scalar_fn/fns/is_null.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl ScalarFnVTable for IsNull {
3434
type Options = EmptyOptions;
3535

3636
fn id(&self) -> ScalarFnId {
37-
ScalarFnId::new_ref("is_null")
37+
ScalarFnId::from("vortex.is_null")
3838
}
3939

4040
fn serialize(&self, _instance: &Self::Options) -> VortexResult<Option<Vec<u8>>> {

vortex-array/src/scalar_fn/fns/literal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl ScalarFnVTable for Literal {
3838
type Options = Scalar;
3939

4040
fn id(&self) -> ScalarFnId {
41-
ScalarFnId::new_ref("vortex.literal")
41+
ScalarFnId::from("vortex.literal")
4242
}
4343

4444
fn serialize(&self, instance: &Self::Options) -> VortexResult<Option<Vec<u8>>> {

vortex-array/src/scalar_fn/fns/merge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl ScalarFnVTable for Merge {
5151
type Options = DuplicateHandling;
5252

5353
fn id(&self) -> ScalarFnId {
54-
ScalarFnId::new_ref("vortex.merge")
54+
ScalarFnId::from("vortex.merge")
5555
}
5656

5757
fn serialize(&self, instance: &Self::Options) -> VortexResult<Option<Vec<u8>>> {

vortex-array/src/scalar_fn/fns/pack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl ScalarFnVTable for Pack {
5454
type Options = PackOptions;
5555

5656
fn id(&self) -> ScalarFnId {
57-
ScalarFnId::new_ref("vortex.pack")
57+
ScalarFnId::from("vortex.pack")
5858
}
5959

6060
fn serialize(&self, instance: &Self::Options) -> VortexResult<Option<Vec<u8>>> {

vortex-array/src/scalar_fn/fns/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl ScalarFnVTable for Select {
4848
type Options = FieldSelection;
4949

5050
fn id(&self) -> ScalarFnId {
51-
ScalarFnId::new_ref("vortex.select")
51+
ScalarFnId::from("vortex.select")
5252
}
5353

5454
fn serialize(&self, instance: &FieldSelection) -> VortexResult<Option<Vec<u8>>> {

vortex-tensor/src/scalar_fns/cosine_similarity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl ScalarFnVTable for CosineSimilarity {
7474
type Options = ApproxOptions;
7575

7676
fn id(&self) -> ScalarFnId {
77-
ScalarFnId::new_ref("vortex.tensor.cosine_similarity")
77+
ScalarFnId::from("vortex.tensor.cosine_similarity")
7878
}
7979

8080
fn arity(&self, _options: &Self::Options) -> Arity {

vortex-tensor/src/scalar_fns/inner_product.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl ScalarFnVTable for InnerProduct {
7777
type Options = ApproxOptions;
7878

7979
fn id(&self) -> ScalarFnId {
80-
ScalarFnId::new_ref("vortex.tensor.inner_product")
80+
ScalarFnId::from("vortex.tensor.inner_product")
8181
}
8282

8383
fn arity(&self, _options: &Self::Options) -> Arity {

vortex-tensor/src/scalar_fns/l2_norm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl ScalarFnVTable for L2Norm {
7171
type Options = ApproxOptions;
7272

7373
fn id(&self) -> ScalarFnId {
74-
ScalarFnId::new_ref("vortex.tensor.l2_norm")
74+
ScalarFnId::from("vortex.tensor.l2_norm")
7575
}
7676

7777
fn arity(&self, _options: &Self::Options) -> Arity {

0 commit comments

Comments
 (0)