File tree Expand file tree Collapse file tree
vortex-array/src/scalar_fn
vortex-layout/src/layouts
vortex-tensor/src/scalar_fns
vortex-turboquant/src/scalar_fns Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ use vortex_error::VortexResult;
1313use vortex_error:: vortex_bail;
1414use vortex_proto:: expr as pb;
1515use vortex_session:: VortexSession ;
16+ use vortex_session:: registry:: CachedId ;
1617
1718use crate :: ArrayRef ;
1819use crate :: Canonical ;
@@ -176,7 +177,8 @@ impl ScalarFnVTable for Between {
176177 type Options = BetweenOptions ;
177178
178179 fn id ( & self ) -> ScalarFnId {
179- ScalarFnId :: new ( "vortex.between" )
180+ static ID : CachedId = CachedId :: new ( "vortex.between" ) ;
181+ * ID
180182 }
181183
182184 fn serialize ( & self , instance : & Self :: Options ) -> VortexResult < Option < Vec < u8 > > > {
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ use vortex_error::VortexResult;
1212use vortex_error:: vortex_bail;
1313use vortex_proto:: expr as pb;
1414use vortex_session:: VortexSession ;
15+ use vortex_session:: registry:: CachedId ;
1516
1617use crate :: ArrayRef ;
1718use crate :: ExecutionCtx ;
@@ -52,7 +53,8 @@ impl ScalarFnVTable for Binary {
5253 type Options = Operator ;
5354
5455 fn id ( & self ) -> ScalarFnId {
55- ScalarFnId :: new ( "vortex.binary" )
56+ static ID : CachedId = CachedId :: new ( "vortex.binary" ) ;
57+ * ID
5658 }
5759
5860 fn serialize ( & self , instance : & Self :: Options ) -> VortexResult < Option < Vec < u8 > > > {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ use vortex_mask::AllOr;
2222use vortex_mask:: Mask ;
2323use vortex_proto:: expr as pb;
2424use vortex_session:: VortexSession ;
25+ use vortex_session:: registry:: CachedId ;
2526
2627use crate :: ArrayRef ;
2728use crate :: ExecutionCtx ;
@@ -79,7 +80,8 @@ impl ScalarFnVTable for CaseWhen {
7980 type Options = CaseWhenOptions ;
8081
8182 fn id ( & self ) -> ScalarFnId {
82- ScalarFnId :: new ( "vortex.case_when" )
83+ static ID : CachedId = CachedId :: new ( "vortex.case_when" ) ;
84+ * ID
8385 }
8486
8587 fn serialize ( & self , _options : & Self :: Options ) -> VortexResult < Option < Vec < u8 > > > {
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ use vortex_error::vortex_bail;
1212use vortex_error:: vortex_err;
1313use vortex_proto:: expr as pb;
1414use vortex_session:: VortexSession ;
15+ use vortex_session:: registry:: CachedId ;
1516
1617use crate :: AnyColumnar ;
1718use crate :: ArrayRef ;
@@ -53,7 +54,8 @@ impl ScalarFnVTable for Cast {
5354 type Options = DType ;
5455
5556 fn id ( & self ) -> ScalarFnId {
56- ScalarFnId :: new ( "vortex.cast" )
57+ static ID : CachedId = CachedId :: new ( "vortex.cast" ) ;
58+ * ID
5759 }
5860
5961 fn serialize ( & self , dtype : & DType ) -> VortexResult < Option < Vec < u8 > > > {
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ use parking_lot::Mutex;
1212use vortex_error:: VortexExpect ;
1313use vortex_error:: VortexResult ;
1414use vortex_error:: vortex_bail;
15+ use vortex_session:: registry:: CachedId ;
1516
1617use crate :: ArrayRef ;
1718use crate :: ExecutionCtx ;
@@ -46,7 +47,8 @@ impl ScalarFnVTable for DynamicComparison {
4647 type Options = DynamicComparisonExpr ;
4748
4849 fn id ( & self ) -> ScalarFnId {
49- ScalarFnId :: from ( "vortex.dynamic" )
50+ static ID : CachedId = CachedId :: new ( "vortex.dynamic" ) ;
51+ * ID
5052 }
5153
5254 fn arity ( & self , _options : & Self :: Options ) -> Arity {
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use vortex_error::vortex_bail;
99use vortex_error:: vortex_ensure;
1010use vortex_error:: vortex_err;
1111use vortex_session:: VortexSession ;
12+ use vortex_session:: registry:: CachedId ;
1213
1314use crate :: AnyColumnar ;
1415use crate :: ArrayRef ;
@@ -37,7 +38,8 @@ impl ScalarFnVTable for FillNull {
3738 type Options = EmptyOptions ;
3839
3940 fn id ( & self ) -> ScalarFnId {
40- ScalarFnId :: new ( "vortex.fill_null" )
41+ static ID : CachedId = CachedId :: new ( "vortex.fill_null" ) ;
42+ * ID
4143 }
4244
4345 fn serialize ( & self , _options : & Self :: Options ) -> VortexResult < Option < Vec < u8 > > > {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use vortex_error::VortexResult;
88use vortex_error:: vortex_err;
99use vortex_proto:: expr as pb;
1010use vortex_session:: VortexSession ;
11+ use vortex_session:: registry:: CachedId ;
1112
1213use crate :: ArrayRef ;
1314use crate :: ExecutionCtx ;
@@ -44,7 +45,8 @@ impl ScalarFnVTable for GetItem {
4445 type Options = FieldName ;
4546
4647 fn id ( & self ) -> ScalarFnId {
47- ScalarFnId :: new ( "vortex.get_item" )
48+ static ID : CachedId = CachedId :: new ( "vortex.get_item" ) ;
49+ * ID
4850 }
4951
5052 fn serialize ( & self , instance : & Self :: Options ) -> VortexResult < Option < Vec < u8 > > > {
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ use std::fmt::Formatter;
66use vortex_array:: scalar_fn:: internal:: row_count:: RowCount ;
77use vortex_error:: VortexResult ;
88use vortex_session:: VortexSession ;
9+ use vortex_session:: registry:: CachedId ;
910
1011use crate :: ArrayRef ;
1112use crate :: ExecutionCtx ;
@@ -34,7 +35,8 @@ impl ScalarFnVTable for IsNotNull {
3435 type Options = EmptyOptions ;
3536
3637 fn id ( & self ) -> ScalarFnId {
37- ScalarFnId :: new ( "vortex.is_not_null" )
38+ static ID : CachedId = CachedId :: new ( "vortex.is_not_null" ) ;
39+ * ID
3840 }
3941
4042 fn serialize ( & self , _instance : & Self :: Options ) -> VortexResult < Option < Vec < u8 > > > {
Original file line number Diff line number Diff line change 33
44use vortex_error:: VortexResult ;
55use vortex_session:: VortexSession ;
6+ use vortex_session:: registry:: CachedId ;
67
78use crate :: ArrayRef ;
89use crate :: ExecutionCtx ;
@@ -32,7 +33,8 @@ impl ScalarFnVTable for IsNull {
3233 type Options = EmptyOptions ;
3334
3435 fn id ( & self ) -> ScalarFnId {
35- ScalarFnId :: from ( "vortex.is_null" )
36+ static ID : CachedId = CachedId :: new ( "vortex.is_null" ) ;
37+ * ID
3638 }
3739
3840 fn serialize ( & self , _instance : & Self :: Options ) -> VortexResult < Option < Vec < u8 > > > {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ use vortex_error::VortexResult;
1313use vortex_error:: vortex_bail;
1414use vortex_proto:: expr as pb;
1515use vortex_session:: VortexSession ;
16+ use vortex_session:: registry:: CachedId ;
1617
1718use crate :: ArrayRef ;
1819use crate :: ExecutionCtx ;
@@ -63,7 +64,8 @@ impl ScalarFnVTable for Like {
6364 type Options = LikeOptions ;
6465
6566 fn id ( & self ) -> ScalarFnId {
66- ScalarFnId :: new ( "vortex.like" )
67+ static ID : CachedId = CachedId :: new ( "vortex.like" ) ;
68+ * ID
6769 }
6870
6971 fn serialize ( & self , instance : & Self :: Options ) -> VortexResult < Option < Vec < u8 > > > {
You can’t perform that action at this time.
0 commit comments