Open Yury-Fridlyand opened 2 years ago
What is the use case for this? In particular,
java.sql.Time
and JDBC only work with 24-hour time. So, expanding OpenSearch SQL Time will affect JDBC driver and likely other interfaces. In other words, it's an expensive change -- what are we getting for it?
In MySQL JDBC driver, TIME > 24 hours is an error case and the recommended solution is to get such fields as strings and handle them on the client. See this comment.
OpenSearch SQL can store up to 24 hours in
TIME
data type. It is not a bug, most of other SQL engines do the same. As far as we are trying to align OpenSearch SQL with MySQL, we should consider the same behavior forTIME
type as MySQL has.https://www.techonthenet.com/mysql/functions/maketime.php
Compare with OpenSearch and Postgres: