Skip to content

[FEATURE] Unclear PPL error message: Empty mapping on wildcard indices #4872

Closed

Description

@Swiddis

Is your feature request related to a problem?
Suppose a cluster has multiple indices with incompatible mappings, and both are matched by the same wildcard:

  • idx-a -> Mapping A
  • idx-b -> Mapping B

source = idx-* then returns the error: Failed to read mapping for index pattern [[Ljava.lang.String;@9acdf8].

This error is because no mapping is returned by the mapping endpoint.

Here's a real-world example, checking a specific OCSF index in a cluster with many such indices:

% curl 'ocsf-1.1.0-2004-detection_finding-2025.03.20-000034/_mapping' | jq .
{
  "ocsf-1.1.0-2004-detection_finding-2025.03.20-000034": {
    "mappings": {
      // Redacted
    }
}

But trying to get all OCSF indices returns an empty mapping:

% curl 'oscf-1.1.0*/_mapping'
{}

What solution would you like?
Clarify the error message. Something like Found an invalid index mapping for 'ocsf-1.1.0*'. Check that all indices matching the pattern share a valid mapping.

What alternatives have you considered?
N/A

Do you have any additional context?
Internal tracking (for AWS employees): https://t.corp.amazon.com/P343512413

Activity

  1. added
    enhancement
    on Nov 26, 2025
  2. changed the title [-][FEATURE] Unclear PPL error message: Empty mapping on wildcard indices.[/-] [+][FEATURE] Unclear PPL error message: Empty mapping on wildcard indices[/+] on Nov 26, 2025
  3. added
    error-experience
    on Nov 26, 2025
  4. added
    PPL
    on Apr 1, 2026
  5. anohedr commented on Jun 14, 2026

    @anohedr
    Contributor

    @Swiddis - If this isnot assigned to any one - I would like to work on this. Thank you

  6. anohedr commented on Jun 14, 2026

    @anohedr
    Contributor

    @Swiddis - I have the code changes in my local. Let me know I can send the PR with the fix

  7. anohedr commented on Jul 6, 2026

    @anohedr
    Contributor

    @Swiddis submitted PR for review

  8. anohedr commented on Nov 13, 2026

    @anohedr
    Contributor

    @Swiddis FYI two checks are red, and both are also failing on main and other recent PRs, so they aren't caused by this change: analytics-engine-compat (failing on all recent runs, including main) and codecov/project (76% against the 99% project-wide target).

    Thanks you

  9. Swiddis commented on Nov 13, 2026

    @Swiddis
    CollaboratorAuthor

    yeah, AE is weird and codecov hasn't been closely tracked in ages, not on you.

  10. moved this from Not Started to Done in PPL Trackeron Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

PPLenhancementerror-experience

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions