Linhong Liu created SPARK-60635:
-----------------------------------

             Summary: Isolate mutable number-format parsers in expression copies
                 Key: SPARK-60635
                 URL: https://issues.apache.org/jira/browse/SPARK-60635
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 5.0.0
            Reporter: Linhong Liu


ToNumber, TryToNumber and numeric ToCharacter cache a mutable ToNumberParser. 
The expressions are not marked stateful, so evaluator copies can reuse the same 
expression and parser reference, including generated code references. Marking 
the expressions stateful lets the existing fresh-copy mechanism give each 
evaluator its own parser. Regression coverage should check independent copies 
and parser references, preserved foldability, conversion results, and NULL 
handling.




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to