Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions native/spark-expr/src/comet_scalar_funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,36 @@ fn all_scalar_functions() -> Vec<Arc<ScalarUDF>> {
Arc::new(ScalarUDF::new_from_impl(SparkDateTrunc::default())),
Arc::new(ScalarUDF::new_from_impl(SparkMakeDate::default())),
Arc::new(ScalarUDF::new_from_impl(SparkSizeFunc::default())),
Arc::new(ScalarUDF::new_from_impl(
crate::math_funcs::math_expr::SecFunc,
)),
Arc::new(ScalarUDF::new_from_impl(
crate::math_funcs::math_expr::CscFunc,
)),
Arc::new(ScalarUDF::new_from_impl(
crate::math_funcs::math_expr::CbrtFunc,
)),
Arc::new(ScalarUDF::new_from_impl(
crate::math_funcs::math_expr::HypotFunc,
)),
Arc::new(ScalarUDF::new_from_impl(
crate::math_funcs::math_expr::ShiftRightUnsignedFunc,
)),
Arc::new(ScalarUDF::new_from_impl(
crate::math_funcs::math_expr::FactorialFunc,
)),
Arc::new(ScalarUDF::new_from_impl(
crate::math_funcs::math_expr::PiFunc,
)),
Arc::new(ScalarUDF::new_from_impl(
crate::math_funcs::math_expr::EulerNumberFunc,
)),
Arc::new(ScalarUDF::new_from_impl(
crate::math_funcs::math_expr::ToDegreesFunc,
)),
Arc::new(ScalarUDF::new_from_impl(
crate::math_funcs::math_expr::ToRadiansFunc,
)),
]
}

Expand Down
6 changes: 4 additions & 2 deletions native/spark-expr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ pub use json_funcs::{FromJson, ToJson};
pub use math_funcs::{
create_modulo_expr, create_negate_expr, spark_ceil, spark_decimal_div,
spark_decimal_integral_div, spark_floor, spark_log, spark_make_decimal, spark_round,
spark_unhex, spark_unscaled_value, CheckOverflow, DecimalRescaleCheckOverflow, NegativeExpr,
NormalizeNaNAndZero, WideDecimalBinaryExpr, WideDecimalOp,
spark_unhex, spark_unscaled_value, CbrtFunc, CheckOverflow, CscFunc,
DecimalRescaleCheckOverflow, EulerNumberFunc, FactorialFunc, HypotFunc, NegativeExpr,
NormalizeNaNAndZero, PiFunc, SecFunc, ShiftRightUnsignedFunc, ToDegreesFunc, ToRadiansFunc,
WideDecimalBinaryExpr, WideDecimalOp,
};
pub use query_context::{create_query_context_map, QueryContext, QueryContextMap};
pub use string_funcs::*;
Expand Down
Loading
Loading