AbsaOSS / AbsaOSS/enceladus

Prevent parsing udf double evaluation

Aperta
#1,028 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug priority: undecided refactoring Standardization
Lingua principale
Scala
Stelle
33
Fork
16
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.