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] Schema returned by SQL plugin are missing date_nanos fields #1954

Closed
mengweieric opened this issue Aug 10, 2023 · 0 comments · Fixed by #1976
Closed

[BUG] Schema returned by SQL plugin are missing date_nanos fields #1954

mengweieric opened this issue Aug 10, 2023 · 0 comments · Fixed by #1976
Labels
bug Something isn't working v2.10.0 Issues targeting release v2.10.0

Comments

@mengweieric
Copy link
Collaborator

What is the bug?
Schema data returned SQL plugin are missing date_nanos fields.

How can one reproduce the bug?
Try to run query to get schema through PPL query and DSL query in dev tool and do a comparison, you will see date_nanos type startTime and endTime both are missing in schema returned by PPL query. Notice SQL query also has this issue. This issue is seen started from 2.7 to all later versions.

POST _plugins/_ppl
{
  "query": """source = otel-v1-apm-span-000001 """
}

GET /otel-v1-apm-span-000001/_mapping

What is the expected behavior?
date_nano fields should be showing up in schema

What is your host/environment?

  • OpenSearch 2.7 and above
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.10.0 Issues targeting release v2.10.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants