Skip to content

ESQL: Report original_types (#124913)#127641

Merged
nik9000 merged 1 commit intoelastic:8.19from
nik9000:esql_report_original_8x
May 2, 2025
Merged

ESQL: Report original_types (#124913)#127641
nik9000 merged 1 commit intoelastic:8.19from
nik9000:esql_report_original_8x

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented May 2, 2025

Adds the original_types to the description of ESQL's unsupported fields. This looks like:

    {
      "name" : "a",
      "type" : "unsupported",
      "original_types" : [
        "long",
        "text"
      ]
    }

for union types. And like:

    {
      "name" : "a",
      "type" : "unsupported",
      "original_types" : [
        "date_range"
      ]
    }

for truly unsupported types.

This information is useful for the UI. For union types it can suggest that users append a cast.

Adds the `original_types` to the description of ESQL's `unsupported`
fields. This looks like:

```
    {
      "name" : "a",
      "type" : "unsupported",
      "original_types" : [
        "long",
        "text"
      ]
    }
```

for union types. And like:

```
    {
      "name" : "a",
      "type" : "unsupported",
      "original_types" : [
        "date_range"
      ]
    }
```

for truly unsupported types.

This information is useful for the UI. For union types it can suggest
that users append a cast.
Copy link
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @nik9000 !

@nik9000 nik9000 enabled auto-merge (squash) May 2, 2025 14:56
@nik9000 nik9000 merged commit fd19e89 into elastic:8.19 May 2, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants