AbsaOSS / AbsaOSS/enceladus

Prevent parsing udf double evaluation

Đang mở
#1,028 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug priority: undecided refactoring Standardization
Ngôn ngữ chính
Scala
Star
33
Fork
16
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.