Skip to content

Integer greater than 32-bit integer cannot be used as key in transformation #1278

@vinkrish

Description

@vinkrish

For following example if Number exceeds 2147483647, accessing @(1,Number) breaks the transormation outputting wrong integer key

Input:

{
  "Student": {
    "Number": 2147483648,
    "KEY": "label",
    "VALUE": "test"
  }
}

Jolt Spec:

[
  {
    "operation": "shift",
    "spec": {
      "Student": {
        "VALUE": "Student.data.@(1,Number).@(1,KEY)"
      }
    }
   }
]

Output:

{
  "Student" : {
    "data" : {
      "-2147483648" : {
        "label" : "test"
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions