Skip to content

Cherry-pick #15557 to 7.x: Fix convert processor conversion of string with leading zeros to integer#15566

Merged
adriansr merged 1 commit intoelastic:7.xfrom
adriansr:backport_15557_7.x
Jan 15, 2020
Merged

Cherry-pick #15557 to 7.x: Fix convert processor conversion of string with leading zeros to integer#15566
adriansr merged 1 commit intoelastic:7.xfrom
adriansr:backport_15557_7.x

Conversation

@adriansr
Copy link
Copy Markdown
Contributor

Cherry-pick of PR #15557 to 7.x branch. Original message:

The conversion failed when for strings with leading zeros and a decimal digit 8 or 9, as the underlying runtime function would try to parse that as an octal number.

This is fixed by only allowing decimal and hex, which in turns makes the processor more aligned to its Elasticsearch counterpart.

Fixes #15513

…ger (elastic#15557)

The conversion failed when for strings with leading zeroes and a decimal
digit 8 or 9, as the underlying runtime function would try to parse that
as an octal number.

This is fixed by only allowing decimal and hex, which in turns makes the
processor more aligned to its Elasticsearch counterpart.

Fixes elastic#15513

(cherry picked from commit e0071b5)
@adriansr adriansr merged commit 1d0dab5 into elastic:7.x Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants