-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DISCUSSION] Reduce amount of ExprCoreType
s
#1176
Comments
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 |
#126 is to support more date formats |
We can remove |
Is your feature request related to a problem?
ExprCoreType
s?ExprCoreType
s?What solution would you like?
Why not to leave only
LONG
andDOUBLE
orLONG
/INT
andFLOAT
/DOUBLE
?I propose to get rid of
BYTE
andSHORT
types, mapbyte
andshort
opensearch types toINT
. Thus we can reduce amount of math/comparison functions registered and simplify widening rule processing. Further removing ofINT
andFLOAT
and using onlyLONG
andDOUBLE
would increase memory usage (for storing those values only!), but increase performance.BYTE
of evenBIT
/BOOL
uses same amount of memory in Java (SQL/JDBC) or even in C (ODBC)(unless you usepragma pack
which reduces performance). Refs: one, two.Also having both
DATETIME
andTIMESTAMP
ExprCoreType
s is a bit confusing - they contain the same information. Both types don't store time zone information.What alternatives have you considered?
N/A
Do you have any additional context?
N/A
The text was updated successfully, but these errors were encountered: