From 045cff74e66c091e30816729881e3926b8ed5d5e Mon Sep 17 00:00:00 2001
From: Matthew Wells <matthew.wells@improving.com>
Date: Wed, 1 Feb 2023 09:22:26 -0800
Subject: [PATCH] Added Correctness Tests For Date And Time Functions (#1298)

* Added correctness tests for date and time functions

* updated tests to include test data

---------

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
(cherry picked from commit cfe6802f5cd7272395ffd5b7f7ce18bbb82d795e)
---
 .../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