diff --git a/datafusion/src/logical_plan/expr.rs b/datafusion/src/logical_plan/expr.rs index ab0255917530..29723e73d25c 100644 --- a/datafusion/src/logical_plan/expr.rs +++ b/datafusion/src/logical_plan/expr.rs @@ -1104,7 +1104,9 @@ unary_scalar_expr!(Acos, acos); unary_scalar_expr!(Atan, atan); unary_scalar_expr!(Floor, floor); unary_scalar_expr!(Ceil, ceil); +unary_scalar_expr!(Now, now); unary_scalar_expr!(Round, round); +unary_scalar_expr!(Random, random); unary_scalar_expr!(Trunc, trunc); unary_scalar_expr!(Abs, abs); unary_scalar_expr!(Signum, signum); diff --git a/datafusion/src/logical_plan/mod.rs b/datafusion/src/logical_plan/mod.rs index f9be1ff98300..f948770e6437 100644 --- a/datafusion/src/logical_plan/mod.rs +++ b/datafusion/src/logical_plan/mod.rs @@ -36,11 +36,11 @@ pub use expr::{ abs, acos, and, array, ascii, asin, atan, avg, binary_expr, bit_length, btrim, case, ceil, character_length, chr, col, combine_filters, concat, concat_ws, cos, count, count_distinct, create_udaf, create_udf, exp, exprlist_to_fields, floor, in_list, - initcap, left, length, lit, ln, log10, log2, lower, lpad, ltrim, max, md5, min, - octet_length, or, regexp_match, regexp_replace, repeat, replace, reverse, right, - round, rpad, rtrim, sha224, sha256, sha384, sha512, signum, sin, split_part, sqrt, - starts_with, strpos, substr, sum, tan, to_hex, translate, trim, trunc, upper, when, - Expr, ExprRewriter, ExpressionVisitor, Literal, Recursion, + initcap, left, length, lit, ln, log10, log2, lower, lpad, ltrim, max, md5, min, now, + octet_length, or, random, regexp_match, regexp_replace, repeat, replace, reverse, + right, round, rpad, rtrim, sha224, sha256, sha384, sha512, signum, sin, split_part, + sqrt, starts_with, strpos, substr, sum, tan, to_hex, translate, trim, trunc, upper, + when, Expr, ExprRewriter, ExpressionVisitor, Literal, Recursion, }; pub use extension::UserDefinedLogicalNode; pub use operators::Operator; diff --git a/datafusion/src/prelude.rs b/datafusion/src/prelude.rs index 0edc82a98afb..e1f1d7b76047 100644 --- a/datafusion/src/prelude.rs +++ b/datafusion/src/prelude.rs @@ -30,8 +30,8 @@ pub use crate::execution::context::{ExecutionConfig, ExecutionContext}; pub use crate::logical_plan::{ array, ascii, avg, bit_length, btrim, character_length, chr, col, concat, concat_ws, count, create_udf, in_list, initcap, left, length, lit, lower, lpad, ltrim, max, md5, - min, octet_length, regexp_replace, repeat, replace, reverse, right, rpad, rtrim, - sha224, sha256, sha384, sha512, split_part, starts_with, strpos, substr, sum, to_hex, - translate, trim, upper, JoinType, Partitioning, + min, now, octet_length, random, regexp_replace, repeat, replace, reverse, right, + rpad, rtrim, sha224, sha256, sha384, sha512, split_part, starts_with, strpos, substr, + sum, to_hex, translate, trim, upper, JoinType, Partitioning, }; pub use crate::physical_plan::csv::CsvReadOptions;