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
* Added `CONVERT_TZ` to the PPL lexer/parser and the SQL lexer/parser.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added `convert_tz` to the BuiltinFunctionName.java.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added convert_tz to DateTimeFunction.java register, private FunctionResolver convert_tz and ExprValue exprConvert_TZ. It implements the functionality for converting between time zones.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added IT PPL and SQL tests for various conditions including time zones that are outside the existing range (consistent with MySQL standard). Added implementation for convert_tz consistent with MySQL implementation.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added DATETIME to OpenSearchPPLParser.g4 and OpenSearchSQLParser.g4.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Rebase merge conflict resolution.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added ppl doctest for convert_tz
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Completed implementation for datetime and convert_Tz.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Removed SQL test from PPL IT test
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Removed redundant convert to string.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Fixed doctests and reverted changes to adddate function in DateTimeFunctionTest.java.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Fixed doctest.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Fixed doctest.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added additional integration tests for PPL and SQL tests for convert_tz.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added null for timezones outside of basic range for DATETIME.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added test cases for null with the datetime function. Made DateTime function call conevrt_tz function.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Seperated out test from DateTimeFunction.java.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Updated tests. Fixed exception to be less general.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Removed changes.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Fixed rel timezone issue.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added support for non valid datetime to return null for convert_tz.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Made exception more verbose.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Removed unneeded format changes in DateTimeFunction.java.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added more doctests.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Removed formatting changes.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Reverting sql/ppl DateTimeFunctionsIT.java.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Reverted changes to DateTimeFunctionTest.java
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added more information about invalid date for convert_tz
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Converted "from Field" and "To Field" to use "Fieldn" where n is the field number.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added date validation. Added test cases in IT to cover cases. Added test in ConvertTZTest.java.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Fixed date validation function. Broke up some unit tests.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Fixed formatting.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added DateTime tests, broke up functions.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added space in DateTimeTest.java.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Tidied up code and tests.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Fixed local date time rst test.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Removed nested try/catch exceptions.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* removed exprConvertTZ function call from within try catch statement.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Reverted change from parse localdate
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Removed extra casting around fromTz variable.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Updated wording for functions.rst
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Updated wording for datetime.rst to describe null for conert_tz
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added more test cases for functions.rst
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Fixed doctests.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Removed extra import.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Renamed isValidTimeZone function to isValidMySqlTimeZoneId.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Has ExprDatetimeValue doing work for exprConvertTZ call.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Deleted fromTZ
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Moved fixed variables to top of class.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added Null to support of exprDateTime.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added missing expr functions for makedate/time
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* cleaning up after rebase merge.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Rebase merge conflict resolution.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Fixed missing DATETIME in SQL Parser.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Fixed IT test.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Addressed PR comments
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Added missing variables after rebase
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Fixed checkstyle errors after rebase.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Moved formatter for date time over.
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Changed function resolved to default
Signed-off-by: MitchellGale-BitQuill <[email protected]>
* Removed unneeded code
Signed-off-by: MitchellGale-BitQuill <[email protected]>
Signed-off-by: MitchellGale-BitQuill <[email protected]>
0 commit comments