forked from apache/cloudberry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support more datatypes in MDP constraint evaluation in ORCA
* Date, time & timestamp data types Since we don't have GPDB available in the gporca_test program, we didn't try to evaluate expressions on types other than integer types. For integer types, we just used the stats values (LINT values) to evaluate comparison operators. With this commit, we can do the same on date columns, which have a DOUBLE value that represents the number of microseconds since 2000-01-01 (older dates have negative values). We could later add timestamp values and probably time values as well, if we want. * float4, float8 & numeric data types Allow these data types in addition to int and date types for the "internal" expression evaluator that is used for constraints, including partition constraints. These float/numeric types map directly to a double value that can be compared. * timeTz and timestampTz
- Loading branch information
Showing
3 changed files
with
107 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters