Hi question regarding datetime data type documenta...
# questions-and-troubleshooting
b
Hi question regarding datetime data type documentation say:
Copy code
Besides, I saw that for StarRocks "From v3.3.5, DATETIME supports millisecond and microsecond precision. The form of printing is YYYY-MM-DD HH:MM:SS.ffffff." So, I guess "timestamp" in Vertica and "datetime" in StarRocks should consume the same bytes now.
we are using 3.4.3
Copy code
create table rawdata.test_tz (dt datetime);
insert into rawdata.test_tz values ('2025-03-28 02:09:02.98222');
insert into rawdata.test_tz values ('2025-03-28 02:09:08');
select * from rawdata.test_tz;
result: 2025-03-28 020908 2025-03-28 020902.0 How do I make it store full ms value?
Probably datagrip IDE issue Will check with MySQL client
е
mysql cli
Copy code
mysql> select * from test_tz;
+----------------------------+
| dt                         |
+----------------------------+
| 2025-03-28 02:09:02.982220 |
| 2025-03-28 02:09:08        |
+----------------------------+
2 rows in set (0.09 sec)