Skip to content

Commit

Permalink
Added Correctness Tests For Date And Time Functions (#1298)
Browse files Browse the repository at this point in the history
* Added correctness tests for date and time functions



* updated tests to include test data



---------

Signed-off-by: Matthew Wells <[email protected]>
  • Loading branch information
matthewryanwells authored Feb 1, 2023
1 parent 5220a98 commit cfe6802
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cfe6802

Please sign in to comment.