mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-07 22:02:56 +00:00
* fix all hard error Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix nextest Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * trivial changes Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix order by Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix sql keyword and data type Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix range exec's input partitioning Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix cover input type Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix explain analyze Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update distributed mode sqlness result Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix lints Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update locks Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * downgrade dlv-list Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
89 lines
2.2 KiB
Plaintext
89 lines
2.2 KiB
Plaintext
SELECT 2*3+1;
|
|
|
|
+--------------------------------+
|
|
| Int64(2) * Int64(3) + Int64(1) |
|
|
+--------------------------------+
|
|
| 7 |
|
|
+--------------------------------+
|
|
|
|
SELECT 1+2*3;
|
|
|
|
+--------------------------------+
|
|
| Int64(1) + Int64(2) * Int64(3) |
|
|
+--------------------------------+
|
|
| 7 |
|
|
+--------------------------------+
|
|
|
|
SELECT 2^2 + 1;
|
|
|
|
+--------------------------------------+
|
|
| Int64(2) BIT_XOR Int64(2) + Int64(1) |
|
|
+--------------------------------------+
|
|
| 1 |
|
|
+--------------------------------------+
|
|
|
|
SELECT 1+2^2;
|
|
|
|
+--------------------------------------+
|
|
| Int64(1) + Int64(2) BIT_XOR Int64(2) |
|
|
+--------------------------------------+
|
|
| 1 |
|
|
+--------------------------------------+
|
|
|
|
SELECT 2*4 / 2;
|
|
|
|
+--------------------------------+
|
|
| Int64(2) * Int64(4) / Int64(2) |
|
|
+--------------------------------+
|
|
| 4 |
|
|
+--------------------------------+
|
|
|
|
SELECT 2*(4 / 2);
|
|
|
|
+--------------------------------+
|
|
| Int64(2) * Int64(4) / Int64(2) |
|
|
+--------------------------------+
|
|
| 4 |
|
|
+--------------------------------+
|
|
|
|
SELECT 16/2*4;
|
|
|
|
+---------------------------------+
|
|
| Int64(16) / Int64(2) * Int64(4) |
|
|
+---------------------------------+
|
|
| 32 |
|
|
+---------------------------------+
|
|
|
|
SELECT (16/2)*4;
|
|
|
|
+---------------------------------+
|
|
| Int64(16) / Int64(2) * Int64(4) |
|
|
+---------------------------------+
|
|
| 32 |
|
|
+---------------------------------+
|
|
|
|
SELECT 2*3*2;
|
|
|
|
+--------------------------------+
|
|
| Int64(2) * Int64(3) * Int64(2) |
|
|
+--------------------------------+
|
|
| 12 |
|
|
+--------------------------------+
|
|
|
|
SELECT 2^3*2;
|
|
|
|
+--------------------------------------+
|
|
| Int64(2) BIT_XOR Int64(3) * Int64(2) |
|
|
+--------------------------------------+
|
|
| 4 |
|
|
+--------------------------------------+
|
|
|
|
SELECT 2*3^2;
|
|
|
|
+--------------------------------------+
|
|
| Int64(2) * Int64(3) BIT_XOR Int64(2) |
|
|
+--------------------------------------+
|
|
| 4 |
|
|
+--------------------------------------+
|
|
|