Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Alternate Datetime Formats #268

Merged
merged 81 commits into from
May 29, 2023
Merged
Show file tree
Hide file tree
Changes from 71 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
8b2f65d
Add OpenSearchDateType as a datatype for matching with Date/Time Open…
acarbonetto Mar 29, 2023
c5ad8e0
Added IT Test
GabeFernandez310 Mar 30, 2023
a64b93e
Added Basic Implementation
GabeFernandez310 Apr 4, 2023
cbf3c38
Added A Comment
GabeFernandez310 Apr 4, 2023
a780bbd
Added Support For Default OpenSearch Formats
GabeFernandez310 Apr 5, 2023
ffede70
Code Cleanup
GabeFernandez310 Apr 5, 2023
3708a6f
Refactored 'parsetimestamp' Function
GabeFernandez310 Apr 6, 2023
bc15e3a
Cleanup
GabeFernandez310 Apr 9, 2023
a5fac5c
Removed Unnecessary Try-Catch Block
GabeFernandez310 Apr 9, 2023
9c2a7c8
Fixed Unit Tests
GabeFernandez310 Apr 13, 2023
0f01283
Fixed IT Test
GabeFernandez310 Apr 13, 2023
5c63d7f
Fixed Text Type and Disabled JSON Format Test
GabeFernandez310 Apr 17, 2023
675aa02
Fix Mapping Type Reporting As Date Instead Of Timestamp In Schema
GabeFernandez310 Apr 18, 2023
09d420b
Revert Breaking Test Changes
GabeFernandez310 Apr 18, 2023
a519501
Fixed Returned ExprCoreTypes
GabeFernandez310 Apr 18, 2023
ed2bcbb
Fixed OpenSearch Type Names In Mapping
GabeFernandez310 Apr 18, 2023
ef90ad6
Fixed LegacyTypeName Function And Refactored Code To Fix Calculations…
GabeFernandez310 Apr 18, 2023
418dc98
Changed Support For Passing Fields Into Text Type
GabeFernandez310 Apr 18, 2023
0670812
Reverted Some Changes And Commented Out A Test
GabeFernandez310 Apr 18, 2023
5543fd8
Commented Out A Breaking Change
GabeFernandez310 Apr 19, 2023
9325d24
Minor Refactoring Changes
GabeFernandez310 Apr 19, 2023
89cb4ce
Reworked parseTimestamp Function To Format Return Based On Enum
GabeFernandez310 Apr 19, 2023
2ab67ed
Fixed Returned ExprValue
GabeFernandez310 Apr 19, 2023
bbc6526
Reverted Changes To Test Files
GabeFernandez310 Apr 19, 2023
e07b4ca
Reverted Some Changes To Enum And Reworked Code
GabeFernandez310 Apr 19, 2023
dc5ef5b
Added Type Mapping To Allow Query To Be Parsed
GabeFernandez310 Apr 19, 2023
2f45ced
Fixed Some Unit Tests
GabeFernandez310 Apr 19, 2023
d1057e3
Fixed TypeActionMap To Still Support ExprCoreTypes
GabeFernandez310 Apr 20, 2023
225e8a9
Wrapped Some Function Returns in ExprValueFactory
GabeFernandez310 Apr 20, 2023
a7801f4
Fixed Integration Test Bug
GabeFernandez310 Apr 23, 2023
25e9f11
Slight Refactoring And Code Cleanup
GabeFernandez310 Apr 24, 2023
ebbcad2
Removed Unneeded Class Member
GabeFernandez310 Apr 24, 2023
dabf8bc
Removed Unneccessary MappingType Parameters
GabeFernandez310 Apr 24, 2023
be06b94
Refactored Code To Fix Integration Test
GabeFernandez310 Apr 24, 2023
5b879de
Merge branch 'integ-support-date-formats' into dev-support-date-formats
GabeFernandez310 Apr 24, 2023
282cc76
Merge branch 'dev-support-date-formats' of github.com:Bit-Quill/opens…
GabeFernandez310 Apr 24, 2023
0fe9ea0
Addressed JaCoCo Issues
GabeFernandez310 Apr 25, 2023
debda6a
Fixed Checkstyle
GabeFernandez310 Apr 25, 2023
9d4cbfc
Changed gradle version and removed values iterator
GumpacG Apr 25, 2023
568bbf3
Merge branch 'dev-fix-build' of github.com:Bit-Quill/opensearch-proje…
GabeFernandez310 Apr 25, 2023
0fba818
Addressed PR Comments
GabeFernandez310 Apr 25, 2023
c2f7391
Update a test to match new indexResponse.aliases() type.
Apr 26, 2023
6f7e633
Changed To Throw Exception When Encountering Parsing Failures
GabeFernandez310 Apr 26, 2023
a6341ac
Merge branch 'dev-fix-build' of github.com:Bit-Quill/opensearch-proje…
GabeFernandez310 Apr 26, 2023
7fa682e
Fixed Checkstyle
GabeFernandez310 Apr 26, 2023
2a74234
Pull Changes From Upstream
GabeFernandez310 Apr 27, 2023
752a718
Merge branch 'integ-support-date-formats' of github.com:Bit-Quill/ope…
GabeFernandez310 Apr 27, 2023
ace81ea
Removed Unneeded Imports
GabeFernandez310 Apr 27, 2023
2ccebd9
Re-enabled Some Tests
GabeFernandez310 Apr 27, 2023
93f212a
Merge branch 'main' of https://github.com/opensearch-project/sql into…
GumpacG Apr 28, 2023
a3de4e5
Merge branch 'opensearch-project:main' into dev-support-date-formats
GabeFernandez310 Apr 28, 2023
0df21dd
Addressed PR Comments
GabeFernandez310 Apr 28, 2023
28c1bca
Merge branch 'dev-support-date-formats' of github.com:Bit-Quill/opens…
GumpacG Apr 28, 2023
b140170
Changed test data
GumpacG May 1, 2023
e95fdde
Pulled out support for user-defined datetime formats
GumpacG May 3, 2023
4394315
Modified IT test data
GumpacG May 3, 2023
4e9bb15
Added IT tests
GumpacG May 4, 2023
53f4968
Merge branch 'dev-support-date-formats' of github.com:Bit-Quill/opens…
GumpacG May 5, 2023
31a1acc
Removed support for just time and just date formats
GumpacG May 6, 2023
c1dd5d0
Removed unsupported formats from IT
GumpacG May 8, 2023
6dc675c
Removed unit tests for date only or time only formats
GumpacG May 8, 2023
9667574
Addressed PR comments from previous PR
GumpacG May 9, 2023
1fafa8d
Addressed PR comment regarding unnecessary OpenSearchDateType instanc…
GumpacG May 10, 2023
d57ab91
Updates to include build-in date and time formats for OpenSearchDateT…
acarbonetto May 23, 2023
5ddae77
Add tests and fix checkstyle
acarbonetto May 24, 2023
c33fcf0
Fixed bugs regarding custom formats
GumpacG May 24, 2023
0b83204
Add unit test to cover custom formats
acarbonetto May 24, 2023
ca9925e
Fixed rebase conflicts
GumpacG May 24, 2023
52892d0
Addressed PR comments
GumpacG May 25, 2023
80618a8
Fixed checkstyle errors
GumpacG May 25, 2023
2148030
Modified integration test
GumpacG May 25, 2023
21ed35f
Fixed Date and time aggregation
GumpacG May 25, 2023
dde61c1
Fixed failing integ tests
GumpacG May 25, 2023
414159f
Modified integ test based on date format changes
GumpacG May 26, 2023
9250020
Added default formatters for date and time. Added unit tests for cove…
GumpacG May 26, 2023
5f34b39
Some minor review comments
acarbonetto May 29, 2023
c978699
Addressed PR comments
GumpacG May 29, 2023
27c9dd5
Fixed checktsyle and jacoco
GumpacG May 29, 2023
0f0dc96
Changed link in rst file
GumpacG May 29, 2023
2672a79
Changed link in rst file
GumpacG May 29, 2023
58a8f19
Addressed PR comments
GumpacG May 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,10 @@ public enum Index {
"calcs",
getMappingFile("calcs_index_mappings.json"),
"src/test/resources/calcs.json"),
DATE_FORMATS(TestsConstants.TEST_INDEX_DATE_FORMATS,
"date_formats",
getMappingFile("date_formats_index_mapping.json"),
"src/test/resources/date_formats.json"),
WILDCARD(TestsConstants.TEST_INDEX_WILDCARD,
"wildcard",
getMappingFile("wildcard_index_mappings.json"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public class TestsConstants {
public final static String TEST_INDEX_BEER = TEST_INDEX + "_beer";
public final static String TEST_INDEX_NULL_MISSING = TEST_INDEX + "_null_missing";
public final static String TEST_INDEX_CALCS = TEST_INDEX + "_calcs";
public final static String TEST_INDEX_DATE_FORMATS = TEST_INDEX + "_date_formats";
public final static String TEST_INDEX_WILDCARD = TEST_INDEX + "_wildcard";
public final static String TEST_INDEX_MULTI_NESTED_TYPE = TEST_INDEX + "_multi_nested";
public final static String TEST_INDEX_NESTED_WITH_NULLS = TEST_INDEX + "_nested_with_nulls";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import static org.opensearch.sql.legacy.TestsConstants.TEST_INDEX_BANK;
import static org.opensearch.sql.legacy.TestsConstants.TEST_INDEX_CALCS;
import static org.opensearch.sql.legacy.TestsConstants.TEST_INDEX_DATE_FORMATS;
import static org.opensearch.sql.legacy.plugin.RestSqlAction.QUERY_API_ENDPOINT;
import static org.opensearch.sql.util.MatcherUtils.rows;
import static org.opensearch.sql.util.MatcherUtils.schema;
Expand Down Expand Up @@ -40,7 +41,7 @@ public void init() throws Exception {
loadIndex(Index.BANK);
loadIndex(Index.CALCS);
loadIndex(Index.PEOPLE2);
loadIndex(Index.CALCS);
loadIndex(Index.DATE_FORMATS);
}

// Integration test framework sets for OpenSearch instance a random timezone.
Expand Down Expand Up @@ -1278,6 +1279,31 @@ public void testTimeFormat() throws IOException {
verifyTimeFormat(timestamp, "timestamp", timestampFormat, timestampFormatted);
}

@Test
public void testReadingDateFormats() throws IOException {
GumpacG marked this conversation as resolved.
Show resolved Hide resolved
String query = String.format("SELECT weekyear_week_day, hour_minute_second_millis," +
" strict_ordinal_date_time FROM %s LIMIT 1", TEST_INDEX_DATE_FORMATS);
JSONObject result = executeQuery(query);
verifySchema(result,
schema("weekyear_week_day", null, "date"),
schema("hour_minute_second_millis", null, "time"),
schema("strict_ordinal_date_time", null, "timestamp"));
verifyDataRows(result,
rows("1984-04-12",
"09:07:42",
"1984-04-12 09:07:42.000123456"
));
}

@Test
public void testDateFormatsWithOr() throws IOException {
String query = String.format("SELECT yyyy-MM-dd_OR_epoch_millis FROM %s", TEST_INDEX_DATE_FORMATS);
JSONObject result = executeQuery(query);
verifyDataRows(result,
rows("1984-04-12 00:00:00"),
rows("1984-04-12 09:07:42.000123456"));
}

protected JSONObject executeQuery(String query) throws IOException {
Request request = new Request("POST", QUERY_API_ENDPOINT);
request.setJsonEntity(String.format(Locale.ROOT, "{\n" + " \"query\": \"%s\"\n" + "}", query));
Expand Down
4 changes: 4 additions & 0 deletions integ-test/src/test/resources/date_formats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{"index": {}}
{"epoch_millis": "450608862000.123456", "epoch_second": "450608862.000123456", "date_optional_time": "1984-04-12T09:07:42.000Z", "strict_date_optional_time": "1984-04-12T09:07:42.000Z", "strict_date_optional_time_nanos": "1984-04-12T09:07:42.000123456Z", "basic_date": "19840412", "basic_date_time": "19840412T090742.000Z", "basic_date_time_no_millis": "19840412T090742Z", "basic_ordinal_date": "1984103", "basic_ordinal_date_time": "1984103T090742.000Z", "basic_ordinal_date_time_no_millis": "1984103T090742Z", "basic_time": "090742.000Z", "basic_time_no_millis": "090742Z", "basic_t_time": "T090742.000Z", "basic_t_time_no_millis": "T090742Z", "basic_week_date": "1984W154", "strict_basic_week_date": "1984W154", "basic_week_date_time": "1984W154T090742.000Z", "strict_basic_week_date_time": "1984W154T090742.000Z", "basic_week_date_time_no_millis": "1984W154T090742Z", "strict_basic_week_date_time_no_millis": "1984W154T090742Z", "date": "1984-04-12", "strict_date": "1984-04-12", "date_hour": "1984-04-12T09", "strict_date_hour": "1984-04-12T09", "date_hour_minute": "1984-04-12T09:07", "strict_date_hour_minute": "1984-04-12T09:07", "date_hour_minute_second": "1984-04-12T09:07:42", "strict_date_hour_minute_second": "1984-04-12T09:07:42", "date_hour_minute_second_fraction": "1984-04-12T09:07:42.000", "strict_date_hour_minute_second_fraction": "1984-04-12T09:07:42.000", "date_hour_minute_second_millis": "1984-04-12T09:07:42.000", "strict_date_hour_minute_second_millis": "1984-04-12T09:07:42.000", "date_time": "1984-04-12T09:07:42.000Z", "strict_date_time": "1984-04-12T09:07:42.000123456Z", "date_time_no_millis": "1984-04-12T09:07:42Z", "strict_date_time_no_millis": "1984-04-12T09:07:42Z", "hour": "09", "strict_hour": "09", "hour_minute": "09:07", "strict_hour_minute": "09:07", "hour_minute_second": "09:07:42", "strict_hour_minute_second": "09:07:42", "hour_minute_second_fraction": "09:07:42.000", "strict_hour_minute_second_fraction": "09:07:42.000", "hour_minute_second_millis": "09:07:42.000", "strict_hour_minute_second_millis": "09:07:42.000", "ordinal_date": "1984-103", "strict_ordinal_date": "1984-103", "ordinal_date_time": "1984-103T09:07:42.000123456Z", "strict_ordinal_date_time": "1984-103T09:07:42.000123456Z", "ordinal_date_time_no_millis": "1984-103T09:07:42Z", "strict_ordinal_date_time_no_millis": "1984-103T09:07:42Z", "time": "09:07:42.000Z", "strict_time": "09:07:42.000Z", "time_no_millis": "09:07:42Z", "strict_time_no_millis": "09:07:42Z", "t_time": "T09:07:42.000Z", "strict_t_time": "T09:07:42.000Z", "t_time_no_millis": "T09:07:42Z", "strict_t_time_no_millis": "T09:07:42Z", "week_date": "1984-W15-4", "strict_week_date": "1984-W15-4", "week_date_time": "1984-W15-4T09:07:42.000Z", "strict_week_date_time": "1984-W15-4T09:07:42.000Z", "week_date_time_no_millis": "1984-W15-4T09:07:42Z", "strict_week_date_time_no_millis": "1984-W15-4T09:07:42Z", "weekyear_week_day": "1984-W15-4", "strict_weekyear_week_day": "1984-W15-4", "year_month_day": "1984-04-12", "strict_year_month_day": "1984-04-12", "yyyy-MM-dd": "1984-04-12", "HH:mm:ss": "09:07:42", "yyyy-MM-dd_OR_epoch_millis": "1984-04-12", "hour_minute_second_OR_t_time": "09:07:42"}
{"index": {}}
{"epoch_millis": "450608862000.123456", "epoch_second": "450608862.000123456", "date_optional_time": "1984-04-12T09:07:42.000Z", "strict_date_optional_time": "1984-04-12T09:07:42.000Z", "strict_date_optional_time_nanos": "1984-04-12T09:07:42.000123456Z", "basic_date": "19840412", "basic_date_time": "19840412T090742.000Z", "basic_date_time_no_millis": "19840412T090742Z", "basic_ordinal_date": "1984103", "basic_ordinal_date_time": "1984103T090742.000Z", "basic_ordinal_date_time_no_millis": "1984103T090742Z", "basic_time": "090742.000Z", "basic_time_no_millis": "090742Z", "basic_t_time": "T090742.000Z", "basic_t_time_no_millis": "T090742Z", "basic_week_date": "1984W154", "strict_basic_week_date": "1984W154", "basic_week_date_time": "1984W154T090742.000Z", "strict_basic_week_date_time": "1984W154T090742.000Z", "basic_week_date_time_no_millis": "1984W154T090742Z", "strict_basic_week_date_time_no_millis": "1984W154T090742Z", "date": "1984-04-12", "strict_date": "1984-04-12", "date_hour": "1984-04-12T09", "strict_date_hour": "1984-04-12T09", "date_hour_minute": "1984-04-12T09:07", "strict_date_hour_minute": "1984-04-12T09:07", "date_hour_minute_second": "1984-04-12T09:07:42", "strict_date_hour_minute_second": "1984-04-12T09:07:42", "date_hour_minute_second_fraction": "1984-04-12T09:07:42.000", "strict_date_hour_minute_second_fraction": "1984-04-12T09:07:42.000", "date_hour_minute_second_millis": "1984-04-12T09:07:42.000", "strict_date_hour_minute_second_millis": "1984-04-12T09:07:42.000", "date_time": "1984-04-12T09:07:42.000Z", "strict_date_time": "1984-04-12T09:07:42.000123456Z", "date_time_no_millis": "1984-04-12T09:07:42Z", "strict_date_time_no_millis": "1984-04-12T09:07:42Z", "hour": "09", "strict_hour": "09", "hour_minute": "09:07", "strict_hour_minute": "09:07", "hour_minute_second": "09:07:42", "strict_hour_minute_second": "09:07:42", "hour_minute_second_fraction": "09:07:42.000", "strict_hour_minute_second_fraction": "09:07:42.000", "hour_minute_second_millis": "09:07:42.000", "strict_hour_minute_second_millis": "09:07:42.000", "ordinal_date": "1984-103", "strict_ordinal_date": "1984-103", "ordinal_date_time": "1984-103T09:07:42.000123456Z", "strict_ordinal_date_time": "1984-103T09:07:42.000123456Z", "ordinal_date_time_no_millis": "1984-103T09:07:42Z", "strict_ordinal_date_time_no_millis": "1984-103T09:07:42Z", "time": "09:07:42.000Z", "strict_time": "09:07:42.000Z", "time_no_millis": "09:07:42Z", "strict_time_no_millis": "09:07:42Z", "t_time": "T09:07:42.000Z", "strict_t_time": "T09:07:42.000Z", "t_time_no_millis": "T09:07:42Z", "strict_t_time_no_millis": "T09:07:42Z", "week_date": "1984-W15-4", "strict_week_date": "1984-W15-4", "week_date_time": "1984-W15-4T09:07:42.000Z", "strict_week_date_time": "1984-W15-4T09:07:42.000Z", "week_date_time_no_millis": "1984-W15-4T09:07:42Z", "strict_week_date_time_no_millis": "1984-W15-4T09:07:42Z", "weekyear_week_day": "1984-W15-4", "strict_weekyear_week_day": "1984-W15-4", "year_month_day": "1984-04-12", "strict_year_month_day": "1984-04-12", "yyyy-MM-dd": "1984-04-12", "HH:mm:ss": "09:07:42", "yyyy-MM-dd_OR_epoch_millis": "450608862000.123456", "hour_minute_second_OR_t_time": "T09:07:42.000Z"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,306 @@
{
"mappings" : {
"properties" : {
"epoch_millis" : {
"type" : "date",
"format" : "epoch_millis"
},
"epoch_second" : {
"type" : "date",
"format" : "epoch_second"
},
"date_optional_time" : {
"type" : "date",
"format" : "date_optional_time"
},
"strict_date_optional_time" : {
"type" : "date",
"format" : "strict_date_optional_time"
},
"strict_date_optional_time_nanos" : {
"type" : "date",
"format" : "strict_date_optional_time_nanos"
},
"basic_date" : {
"type" : "date",
"format" : "basic_date"
},
"basic_date_time" : {
"type" : "date",
"format" : "basic_date_time"
},
"basic_date_time_no_millis" : {
"type" : "date",
"format" : "basic_date_time_no_millis"
},
"basic_ordinal_date" : {
"type" : "date",
"format" : "basic_ordinal_date"
},
"basic_ordinal_date_time" : {
"type" : "date",
"format" : "basic_ordinal_date_time"
},
"basic_ordinal_date_time_no_millis" : {
"type" : "date",
"format" : "basic_ordinal_date_time_no_millis"
},
"basic_time" : {
"type" : "date",
"format" : "basic_time"
},
"basic_time_no_millis" : {
"type" : "date",
"format" : "basic_time_no_millis"
},
"basic_t_time" : {
"type" : "date",
"format" : "basic_t_time"
},
"basic_t_time_no_millis" : {
"type" : "date",
"format" : "basic_t_time_no_millis"
},
"basic_week_date" : {
"type" : "date",
"format" : "basic_week_date"
},
"strict_basic_week_date" : {
"type" : "date",
"format" : "strict_basic_week_date"
},
"basic_week_date_time" : {
"type" : "date",
"format" : "basic_week_date_time"
},
"strict_basic_week_date_time" : {
"type" : "date",
"format" : "strict_basic_week_date_time"
},
"basic_week_date_time_no_millis" : {
"type" : "date",
"format" : "basic_week_date_time_no_millis"
},
"strict_basic_week_date_time_no_millis" : {
"type" : "date",
"format" : "strict_basic_week_date_time_no_millis"
},
"date" : {
"type" : "date",
"format" : "date"
},
"strict_date" : {
"type" : "date",
"format" : "strict_date"
},
"date_hour" : {
"type" : "date",
"format" : "date_hour"
},
"strict_date_hour" : {
"type" : "date",
"format" : "strict_date_hour"
},
"date_hour_minute" : {
"type" : "date",
"format" : "date_hour_minute"
},
"strict_date_hour_minute" : {
"type" : "date",
"format" : "strict_date_hour_minute"
},
"date_hour_minute_second" : {
"type" : "date",
"format" : "date_hour_minute_second"
},
"strict_date_hour_minute_second" : {
"type" : "date",
"format" : "strict_date_hour_minute_second"
},
"date_hour_minute_second_fraction" : {
"type" : "date",
"format" : "date_hour_minute_second_fraction"
},
"strict_date_hour_minute_second_fraction" : {
"type" : "date",
"format" : "strict_date_hour_minute_second_fraction"
},
"date_hour_minute_second_millis" : {
"type" : "date",
"format" : "date_hour_minute_second_millis"
},
"strict_date_hour_minute_second_millis" : {
"type" : "date",
"format" : "strict_date_hour_minute_second_millis"
},
"date_time" : {
"type" : "date",
"format" : "date_time"
},
"strict_date_time" : {
"type" : "date",
"format" : "strict_date_time"
},
"date_time_no_millis" : {
"type" : "date",
"format" : "date_time_no_millis"
},
"strict_date_time_no_millis" : {
"type" : "date",
"format" : "strict_date_time_no_millis"
},
"hour" : {
"type" : "date",
"format" : "hour"
},
"strict_hour" : {
"type" : "date",
"format" : "strict_hour"
},
"hour_minute" : {
"type" : "date",
"format" : "hour_minute"
},
"strict_hour_minute" : {
"type" : "date",
"format" : "strict_hour_minute"
},
"hour_minute_second" : {
"type" : "date",
"format" : "hour_minute_second"
},
"strict_hour_minute_second" : {
"type" : "date",
"format" : "strict_hour_minute_second"
},
"hour_minute_second_fraction" : {
"type" : "date",
"format" : "hour_minute_second_fraction"
},
"strict_hour_minute_second_fraction" : {
"type" : "date",
"format" : "strict_hour_minute_second_fraction"
},
"hour_minute_second_millis" : {
"type" : "date",
"format" : "hour_minute_second_millis"
},
"strict_hour_minute_second_millis" : {
"type" : "date",
"format" : "strict_hour_minute_second_millis"
},
"ordinal_date" : {
"type" : "date",
"format" : "ordinal_date"
},
"strict_ordinal_date" : {
"type" : "date",
"format" : "strict_ordinal_date"
},
"ordinal_date_time" : {
"type" : "date",
"format" : "ordinal_date_time"
},
"strict_ordinal_date_time" : {
"type" : "date",
"format" : "strict_ordinal_date_time"
},
"ordinal_date_time_no_millis" : {
"type" : "date",
"format" : "ordinal_date_time_no_millis"
},
"strict_ordinal_date_time_no_millis" : {
"type" : "date",
"format" : "strict_ordinal_date_time_no_millis"
},
"time" : {
"type" : "date",
"format" : "time"
},
"strict_time" : {
"type" : "date",
"format" : "strict_time"
},
"time_no_millis" : {
"type" : "date",
"format" : "time_no_millis"
},
"strict_time_no_millis" : {
"type" : "date",
"format" : "strict_time_no_millis"
},
"t_time" : {
"type" : "date",
"format" : "t_time"
},
"strict_t_time" : {
"type" : "date",
"format" : "strict_t_time"
},
"t_time_no_millis" : {
"type" : "date",
"format" : "t_time_no_millis"
},
"strict_t_time_no_millis" : {
"type" : "date",
"format" : "strict_t_time_no_millis"
},
"week_date" : {
"type" : "date",
"format" : "week_date"
},
"strict_week_date" : {
"type" : "date",
"format" : "strict_week_date"
},
"week_date_time" : {
"type" : "date",
"format" : "week_date_time"
},
"strict_week_date_time" : {
"type" : "date",
"format" : "strict_week_date_time"
},
"week_date_time_no_millis" : {
"type" : "date",
"format" : "week_date_time_no_millis"
},
"strict_week_date_time_no_millis" : {
"type" : "date",
"format" : "strict_week_date_time_no_millis"
},
"weekyear_week_day" : {
"type" : "date",
"format" : "weekyear_week_day"
},
"strict_weekyear_week_day" : {
"type" : "date",
"format" : "strict_weekyear_week_day"
},
"year_month_day" : {
"type" : "date",
"format" : "year_month_day"
},
"strict_year_month_day" : {
"type" : "date",
"format" : "strict_year_month_day"
},
"yyyy-MM-dd" : {
"type" : "date",
"format": "yyyy-MM-dd"
},
"HH:mm:ss" : {
"type" : "date",
"format": "HH:mm:ss"
},
"yyyy-MM-dd_OR_epoch_millis" : {
"type" : "date",
"format": "yyyy-MM-dd||epoch_millis"
},
"hour_minute_second_OR_t_time" : {
"type" : "date",
"format": "hour_minute_second||t_time"
}
}
}
}
Loading