Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 991 Bytes

File metadata and controls

36 lines (29 loc) · 991 Bytes

Integer Operations

There are four supported integer datatypes, TINYINT (8 bits), SMALLINT (16 bits), INTEGER (32 bits), and BIGINT (64 bits). These are represented as two's complement values, and computations on these types obey the standard two's complement semantics, including overflow.

The legal operations are + (plus, unary and binary), - (minus, unary and binary), * (multiplication), / (division), % (modulus).

Division or modulus by zero return NULL.

Predefined functions on integer values

Predefined functions on integer values
Function Description
ABS(value) return absolute value.
MOD(left, right) integer modulus. Same as left % right.

Operations not supported

Non-deterministic functions, such as RAND are currently not supported in DBSP.