Skip to content

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

Closed

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

Activity

  1. added
    bug
    on Jun 13, 2021
  2. penghuo commented on Jun 24, 2021

    @penghuo
    Collaborator

    Thanks for reporting the issue.

  3. penghuo commented on Jun 24, 2021

    @penghuo
    Collaborator

    Could you rebase the PR to OpenSearch?

  4. FreCap commented on Jun 24, 2021

    @FreCap
    ContributorAuthor

    At the moment I’m still working on ES until OpenSearch is announced stable and adopted by major companies.
    Reporting it because I still believe in the long term of the project

  5. acarbonetto commented on Jun 19, 2023

    @acarbonetto
    Collaborator

    duplicate of: #794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugv2.9.0

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions