You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Discussion] Do we need to support more than 24 hours in TIME? #852
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 for TIME type as MySQL has.
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.
Activity
MaxKsyunz commentedon Sep 23, 2022
What is the use case for this? In particular,
java.sql.Timeand 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.