[ 
https://issues.apache.org/jira/browse/SPARK-39794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xinrong Meng updated SPARK-39794:
---------------------------------
    Description: 
As per 
[https://github.com/apache/spark/pull/37173#discussion_r921990449|https://github.com/apache/spark/pull/37173#discussion_r921990449,]
 ,

we ought to make `DataTypeSingleton` parametric.

Otherwise, we will create a new DataType instance (with parameters in 
constructors, e.g. `Varchar`, `DecimalTime`) every time it's called.

 

> Introduce parametric singleton for DataType
> -------------------------------------------
>
>                 Key: SPARK-39794
>                 URL: https://issues.apache.org/jira/browse/SPARK-39794
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 3.4.0
>            Reporter: Xinrong Meng
>            Priority: Major
>
> As per 
> [https://github.com/apache/spark/pull/37173#discussion_r921990449|https://github.com/apache/spark/pull/37173#discussion_r921990449,]
>  ,
> we ought to make `DataTypeSingleton` parametric.
> Otherwise, we will create a new DataType instance (with parameters in 
> constructors, e.g. `Varchar`, `DecimalTime`) every time it's called.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to