Bug report: fromDecimal(...) function does not correctly handle delim parameter passed as default ("Auto")
#2,217 创建于 2026年3月4日
仓库指标
- Star
- (34,843 star)
- PR 合并指标
- (平均合并 57天 13小时) (30 天内合并 62 个 PR)
描述
Describe the bug When fromDecimal is called without specifying a value for the "delim" parameter, or when delim is passed as "Auto" it will only parse the first number in the passed text ignoring any further numbers whatever separator has been used.
To Reproduce Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:
See bug report #2139 which arises as a consequence of this issue.
Expected behaviour delim = "Auto" case should be handled correctly, in a manner similar to the fromHex(...) function.
Additional context fromHex could be used as a guide towards a correct implementation, noting that there are other differences because pairs of hex digits can be packed exactly into bytes whereas for decimal up to 3 digits can be required.