Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
count_all in datafusion::functions_aggregate::count - Rust
[go: Go Back, main page]

Function count_all

Source
pub fn count_all() -> Expr
Expand description

Creates aggregation to count all rows.

In SQL this is SELECT COUNT(*) ...

The expression is equivalent to COUNT(*), COUNT(), COUNT(1), and is aliased to a column named "count(*)" for backward compatibility.

Example

// create `count(*)` expression
let expr = count_all();
assert_eq!(expr.schema_name().to_string(), "count(*)");
// if you need to refer to this column, use the `schema_name` function
let expr = col(expr.schema_name().to_string());