@uwdata/mosaic-sql
Version:
SQL query construction and analysis.
236 lines • 9.01 kB
TypeScript
import type { ExprValue } from '../types.js';
/**
* Compute an arg_max aggregate.
* @param y The argument to return.
* @param x The expression to maximize.
* @returns A SQL aggregate function call.
*/
export declare function argmax(y: ExprValue, x: ExprValue): import("../index.js").AggregateNode;
/**
* Compute an arg_min aggregate.
* @param y The argument to return.
* @param x The expression to minimize.
* @returns A SQL aggregate function call.
*/
export declare function argmin(y: ExprValue, x: ExprValue): import("../index.js").AggregateNode;
/**
* Compute an array aggregation.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function arrayAgg(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute an average aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function avg(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a correlation aggregate.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function corr(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a count aggregate.
* @param [expr] An optional expression
* to count. If specified, only non-null expression values are counted.
* If omitted, all rows within a group are counted.
* @returns A SQL aggregate function call.
*/
export declare function count(expr?: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a sample covariance aggregate.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function covariance(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a population covariance aggregate.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function covarPop(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute an entropy aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function entropy(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a first aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function first(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a geomean aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function geomean(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a sample kurtosis aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function kurtosis(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a median absolute deviation (MAD) aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function mad(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a maximum aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function max(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a median aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function median(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a minimum aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function min(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a mode aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function mode(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a last aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function last(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a product aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function product(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a quantile aggregate.
* @param expr The expression to aggregate.
* @param p The quantile value.
* @returns A SQL aggregate function call.
*/
export declare function quantile(expr: ExprValue, p: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a linear regression reg_avgX aggregate.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function regrAvgX(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a linear regression reg_avgY aggregate.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function regrAvgY(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a linear regression count aggregate.
* This returns the count of rows where both x and y are non-null.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function regrCount(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a linear regression intercept aggregate.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function regrIntercept(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a linear regression R^2 aggregate.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function regrR2(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a linear regression regr_sxx aggregate.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function regrSXX(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a linear regression regr_sxy aggregate.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function regrSXY(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a linear regression regr_syy aggregate.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function regrSYY(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a linear regression slope aggregate.
* @param x The x expression to aggregate.
* @param y The y expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function regrSlope(x: ExprValue, y: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a skewness aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function skewness(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a sample standard deviation aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function stddev(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a population standard deviation aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function stddevPop(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a string aggregation.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function stringAgg(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a sum aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function sum(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a sample variance aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function variance(expr: ExprValue): import("../index.js").AggregateNode;
/**
* Compute a population variance aggregate.
* @param expr The expression to aggregate.
* @returns A SQL aggregate function call.
*/
export declare function varPop(expr: ExprValue): import("../index.js").AggregateNode;
//# sourceMappingURL=aggregate.d.ts.map