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

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

Closed
FreCap opened this issue Jun 13, 2021 · 4 comments · Fixed by #1821
Closed

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

FreCap opened this issue Jun 13, 2021 · 4 comments · Fixed by #1821
Labels
bug Something isn't working v2.9.0 v2.9.0

Comments

@FreCap
Copy link
Contributor

FreCap commented Jun 13, 2021

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

@FreCap FreCap added Beta bug Something isn't working untriaged labels Jun 13, 2021
@penghuo
Copy link
Collaborator

penghuo commented Jun 24, 2021

Thanks for reporting the issue.

@penghuo
Copy link
Collaborator

penghuo commented Jun 24, 2021

Could you rebase the PR to OpenSearch?

@FreCap
Copy link
Contributor Author

FreCap commented Jun 24, 2021

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

@acarbonetto
Copy link
Collaborator

duplicate of: #794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.9.0 v2.9.0
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants