You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xinrong Meng (Jira)" <ji...@apache.org> on 2022/07/15 17:46:00 UTC
[jira] [Updated] (SPARK-39794) Introduce parametric singleton for DataType
[ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org