Skip to content

Commit 174226c

Browse files
authored
export both now and random functions (#389)
1 parent efdbdbb commit 174226c

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

datafusion/src/logical_plan/expr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,9 @@ unary_scalar_expr!(Acos, acos);
11041104
unary_scalar_expr!(Atan, atan);
11051105
unary_scalar_expr!(Floor, floor);
11061106
unary_scalar_expr!(Ceil, ceil);
1107+
unary_scalar_expr!(Now, now);
11071108
unary_scalar_expr!(Round, round);
1109+
unary_scalar_expr!(Random, random);
11081110
unary_scalar_expr!(Trunc, trunc);
11091111
unary_scalar_expr!(Abs, abs);
11101112
unary_scalar_expr!(Signum, signum);

datafusion/src/logical_plan/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ pub use expr::{
3636
abs, acos, and, array, ascii, asin, atan, avg, binary_expr, bit_length, btrim, case,
3737
ceil, character_length, chr, col, combine_filters, concat, concat_ws, cos, count,
3838
count_distinct, create_udaf, create_udf, exp, exprlist_to_fields, floor, in_list,
39-
initcap, left, length, lit, ln, log10, log2, lower, lpad, ltrim, max, md5, min,
40-
octet_length, or, regexp_match, regexp_replace, repeat, replace, reverse, right,
41-
round, rpad, rtrim, sha224, sha256, sha384, sha512, signum, sin, split_part, sqrt,
42-
starts_with, strpos, substr, sum, tan, to_hex, translate, trim, trunc, upper, when,
43-
Expr, ExprRewriter, ExpressionVisitor, Literal, Recursion,
39+
initcap, left, length, lit, ln, log10, log2, lower, lpad, ltrim, max, md5, min, now,
40+
octet_length, or, random, regexp_match, regexp_replace, repeat, replace, reverse,
41+
right, round, rpad, rtrim, sha224, sha256, sha384, sha512, signum, sin, split_part,
42+
sqrt, starts_with, strpos, substr, sum, tan, to_hex, translate, trim, trunc, upper,
43+
when, Expr, ExprRewriter, ExpressionVisitor, Literal, Recursion,
4444
};
4545
pub use extension::UserDefinedLogicalNode;
4646
pub use operators::Operator;

datafusion/src/prelude.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ pub use crate::execution::context::{ExecutionConfig, ExecutionContext};
3030
pub use crate::logical_plan::{
3131
array, ascii, avg, bit_length, btrim, character_length, chr, col, concat, concat_ws,
3232
count, create_udf, in_list, initcap, left, length, lit, lower, lpad, ltrim, max, md5,
33-
min, octet_length, regexp_replace, repeat, replace, reverse, right, rpad, rtrim,
34-
sha224, sha256, sha384, sha512, split_part, starts_with, strpos, substr, sum, to_hex,
35-
translate, trim, upper, JoinType, Partitioning,
33+
min, now, octet_length, random, regexp_replace, repeat, replace, reverse, right,
34+
rpad, rtrim, sha224, sha256, sha384, sha512, split_part, starts_with, strpos, substr,
35+
sum, to_hex, translate, trim, upper, JoinType, Partitioning,
3636
};
3737
pub use crate::physical_plan::csv::CsvReadOptions;

0 commit comments

Comments
 (0)