From d09876ca7b2e20115b728550ed686a92dc4ec41a Mon Sep 17 00:00:00 2001 From: Matthew Wells Date: Fri, 27 Jan 2023 10:35:50 -0800 Subject: [PATCH] Added Correctness Tests For Date And Time Functions * Added correctness tests for date and time functions Signed-off-by: Matthew Wells * updated tests to include test data Signed-off-by: Matthew Wells --------- Signed-off-by: Matthew Wells --- .../expressions/date_and_time_functions.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/integ-test/src/test/resources/correctness/expressions/date_and_time_functions.txt b/integ-test/src/test/resources/correctness/expressions/date_and_time_functions.txt index e69de29bb2..a19c25f4b1 100644 --- a/integ-test/src/test/resources/correctness/expressions/date_and_time_functions.txt +++ b/integ-test/src/test/resources/correctness/expressions/date_and_time_functions.txt @@ -0,0 +1,13 @@ +DATE '2001-05-07' +TIME '12:30:00' +TIMESTAMP '2001-05-07 12:30:00' +SECOND(timestamp) AS COLUMN FROM opensearch_dashboards_sample_data_flights +MINUTE(timestamp) AS COLUMN FROM opensearch_dashboards_sample_data_flights +HOUR(timestamp) AS COLUMN FROM opensearch_dashboards_sample_data_flights +DAY_OF_MONTH(timestamp) AS COLUMN FROM opensearch_dashboards_sample_data_flights +DAY_OF_YEAR(timestamp) AS COLUMN FROM opensearch_dashboards_sample_data_flights +MONTH(timestamp) AS COLUMN FROM opensearch_dashboards_sample_data_flights +QUARTER(timestamp) AS COLUMN FROM opensearch_dashboards_sample_data_flights +YEAR(timestamp) AS COLUMN FROM opensearch_dashboards_sample_data_flights +DAYNAME(timestamp) AS COLUMN FROM opensearch_dashboards_sample_data_flights +MONTHNAME(timestamp) AS COLUMN FROM opensearch_dashboards_sample_data_flights \ No newline at end of file