mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-07 22:02:56 +00:00
feat: impl Vector, DataType traits for decimal128 (#2727)
* feat: decimal128 vector * feat: Decimal128Type in datatypes * refactor: cast function * feat: decimal128 type in ConcreteDataType * chore: decimal * chore: sql_data_type_to_concrete_data_type * chore: cr comment Co-authored-by: Dennis Zhuang <killme2008@gmail.com> Co-authored-by: Yingwen <realevenyag@gmail.com> * chore: fix finish() * chore: add debug_assert to new decimal128 --------- Co-authored-by: Dennis Zhuang <killme2008@gmail.com> Co-authored-by: Yingwen <realevenyag@gmail.com>
This commit is contained in:
@@ -9,17 +9,17 @@ Affected Rows: 7
|
||||
-- SQLNESS SORT_RESULT 2 2
|
||||
SELECT * FROM t0 ORDER BY t0.c0 DESC;
|
||||
|
||||
+------+-------------------------+
|
||||
| c0 | t |
|
||||
+------+-------------------------+
|
||||
| null | 1970-01-01T00:00:00.002 |
|
||||
| null | 1970-01-01T00:00:00.003 |
|
||||
| null | 1970-01-01T00:00:00.004 |
|
||||
| null | 1970-01-01T00:00:00.005 |
|
||||
| null | 1970-01-01T00:00:00.006 |
|
||||
| null | 1970-01-01T00:00:00.007 |
|
||||
| a | 1970-01-01T00:00:00.001 |
|
||||
+------+-------------------------+
|
||||
+----+-------------------------+
|
||||
| c0 | t |
|
||||
+----+-------------------------+
|
||||
| | 1970-01-01T00:00:00.002 |
|
||||
| | 1970-01-01T00:00:00.003 |
|
||||
| | 1970-01-01T00:00:00.004 |
|
||||
| | 1970-01-01T00:00:00.005 |
|
||||
| | 1970-01-01T00:00:00.006 |
|
||||
| | 1970-01-01T00:00:00.007 |
|
||||
| a | 1970-01-01T00:00:00.001 |
|
||||
+----+-------------------------+
|
||||
|
||||
CREATE TABLE test0 (job VARCHAR, host VARCHAR, t TIMESTAMP TIME INDEX);
|
||||
|
||||
@@ -75,7 +75,7 @@ SELECT * FROM test1 ORDER BY s;
|
||||
| 3555555555552 | 1970-01-01T00:00:00.003 |
|
||||
| 3555555555553 | 1970-01-01T00:00:00.007 |
|
||||
| 355555555556 | 1970-01-01T00:00:00.005 |
|
||||
| null | 1970-01-01T00:00:00.002 |
|
||||
| | 1970-01-01T00:00:00.002 |
|
||||
+---------------+-------------------------+
|
||||
|
||||
CREATE TABLE test4 (i INT, j INT, t TIMESTAMP TIME INDEX);
|
||||
@@ -342,7 +342,7 @@ select i, split_part(s, 'b', 1) from test8 order by i;
|
||||
| i | split_part(test8.s,Utf8("b"),Int64(1)) |
|
||||
+---+----------------------------------------+
|
||||
| 1 | cc |
|
||||
| 2 | null |
|
||||
| 2 | |
|
||||
| 3 | a |
|
||||
| | d |
|
||||
+---+----------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user