Skip to content

[BUG] ScriptProcessor fails with Byte and Short data types #14379

Closed
@andrross

Description

Describe the bug

#11725 introduced a regression in to OpenSearch 2.8 where the following ingest processor will fail:

{
  "description": "_description",
  "processors": [
    {
      "script" : {
        "source" : "ctx.byte = (byte)127;ctx.short = (short)32767"
      }
    },
    {
      "script" : {
        "source" : "ctx.other_field = 'other_field'"
      }
    }
  ]
}

Related component

Indexing

To Reproduce

Index a document using the pipeline defined above in OpenSearch 2.8 or newer

Expected behavior

Request should not fail

Additional Details

No response

Activity

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

Metadata

Assignees

No one assigned

    Labels

    IndexingIndexing, Bulk Indexing and anything related to indexingbugSomething isn't workinguntriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions