mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-06-01 12:50:40 +00:00
feat: add modulo function (#3147)
* feat: add modulo function * fix: address CR feedback
This commit is contained in:
16
tests/cases/standalone/common/function/arithmetic.sql
Normal file
16
tests/cases/standalone/common/function/arithmetic.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
SELECT MOD(18, 4);
|
||||
|
||||
SELECT MOD(-18, 4);
|
||||
|
||||
SELECT MOD(18.0, 4.0);
|
||||
|
||||
SELECT MOD(18, 0);
|
||||
|
||||
|
||||
|
||||
SELECT POW (2, 5);
|
||||
|
||||
SELECT POW (1.01, 365);
|
||||
|
||||
SELECT POW (0.99, 365);
|
||||
Reference in New Issue
Block a user