Skip to content

[BUG] Allowing date in format yyyy-MM-dd HH:mm:ss.SSSSSS #126

@FreCap

Description

@FreCap

Describe the bug

This should succeed:

DELETE test_db_date_parse

PUT test_db_date_parse
{
  "mappings": {
      "properties": {
        "update": {
          "type": "date",
          "format": "strict_date_optional_time||epoch_millis||strict_date||yyyy-MM-dd HH:mm:ss||yyyy-MM-dd HH:mm:ss.SSSSSS"
        }
      
    }
  }
}

PUT test_db_date_parse/_doc/2
{

  "update":"2021-06-10 09:32:21.111974"
}

POST _opendistro/_sql
{
"query" : """SELECT * 
FROM test_db_date_parse
 """
}

Opendistro improvement for some use cases: opendistro-for-elasticsearch/sql#1118

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv2.9.0v2.9.0

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions