[ https://issues.apache.org/jira/browse/SPARK-50844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bobby Wang updated SPARK-50844: ------------------------------- Description: Currently, Since most of models from Spark.ml doesn't have a public no-arguments constructor which results in the model couldn't be loaded by ServiceLoader. Currently, in order to load a model in connect ML, we're using reflection way which seems a little bit of unsafe. Refer to https://github.com/apache/spark/pull/49503#discussion_r1916232428 was: Currently, Since most of models from Spark.ml doesn't have a public no-arguments constructor which results in the model couldn't be loaded by ServiceLoader. Currently, in order to load a model in connect ML, we're using reflection way which seems a little bit of unsafe. > make ML model to be loaded by ServiceLoader > ------------------------------------------- > > Key: SPARK-50844 > URL: https://issues.apache.org/jira/browse/SPARK-50844 > Project: Spark > Issue Type: Sub-task > Components: Connect, ML > Affects Versions: 4.0.0, 4.1 > Reporter: Bobby Wang > Priority: Major > > Currently, Since most of models from Spark.ml doesn't have a public > no-arguments constructor which results in the model couldn't be loaded by > ServiceLoader. > Currently, in order to load a model in connect ML, we're using reflection way > which seems a little bit of unsafe. > > Refer to https://github.com/apache/spark/pull/49503#discussion_r1916232428 -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org