AbsaOSS / AbsaOSS/enceladus

Prevent parsing udf double evaluation

未关闭
#1,028 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug priority: undecided refactoring Standardization
主要语言
Scala
星标
33
派生
16
PR 合并指标
30 天内没有已合并 PR

描述

## Describe the bug
In `TypeParser` when calling a udf for parsing evaluates it twice for every input. Ones for the actual value and second time for the possibly existing error.
The udf actually returns a struct of both values.
For improved performance it would be better to return the struct from `TypeParser` and decompose it only later in `StandardizationInterpreter` avoiding the udf double evaluation

## To Reproduce
Steps to reproduce the behavior OR commands run:
1. Any logic leaded to use of Udf in `TypeParser`, for example parsing numbers based on pattern.

## Expected behaviour
Effective usage of udf

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。