convert_datatype takes either int or float options today.
However, if you run a long value through the convert_datatype, it allows it. However, the dissect -> convert_datatype will change the value of the field to INTEGER.MAX
Source value:
"supportID" => "4394740425750718628"
Output value:
"supportID" => 2147483647
To workaround this, instead of using convert_datatype for dissect, I am post-processing it using mutate/convert:
If we do not intend to support longs like mutate/convert does, it will be better if we throw an error on the configuration instead of auto-converting the value to integer.max.
convert_datatype takes either int or float options today.
However, if you run a long value through the convert_datatype, it allows it. However, the dissect -> convert_datatype will change the value of the field to INTEGER.MAX
Source value:
Output value:
To workaround this, instead of using convert_datatype for dissect, I am post-processing it using mutate/convert:
Which returns the correct result:
If we do not intend to support longs like mutate/convert does, it will be better if we throw an error on the configuration instead of auto-converting the value to integer.max.