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
What solution would you like?
Why not to leave only LONG and DOUBLE or LONG/INT and FLOAT/DOUBLE?
I propose to get rid of BYTE and SHORT types, map byte and short opensearch types to INT. Thus we can reduce amount of math/comparison functions registered and simplify widening rule processing. Further removing of INT and FLOAT and using only LONG and DOUBLE would increase memory usage (for storing those values only!), but increase performance.
BYTE of even BIT/BOOL uses same amount of memory in Java (SQL/JDBC) or even in C (ODBC)(unless you use pragma pack which reduces performance). Refs: one, two.
Also having both DATETIME and TIMESTAMPExprCoreTypes is a bit confusing - they contain the same information. Both types don't store time zone information.
Also having both DATETIME and TIMESTAMP ExprCoreTypes is a bit confusing - they contain the same information. Both types don't store time zone information.
If #126 is fixed and supports timezone, we could map to a timestamp type with timezone included. Which means we would have a reason to have both a timestamp and datatime type.
#126 is to support more date formats
This ticket to remove duplicated types. DATETIME and TIMESTAMP contain completely the same info and adding extra complexity
Activity
acarbonetto commentedon Mar 6, 2023
If #126 is fixed and supports timezone, we could map to a timestamp type with timezone included. Which means we would have a reason to have both a timestamp and datatime type.
Consider not removing
datetime.Yury-Fridlyand commentedon Mar 6, 2023
#126 is to support more date formats
This ticket to remove duplicated types.
DATETIMEandTIMESTAMPcontain completely the same info and adding extra complexityacarbonetto commentedon Jun 13, 2023
We can remove
DATETIME, but there's no real benefit to removingBYTE/SHORT.