[ https://issues.apache.org/jira/browse/SPARK-45713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allison Wang updated SPARK-45713: --------------------------------- Description: Support registering Python data sources. Users can register a Python data source and later use reference it using its name. {code:java} class MyDataSource(DataSource): @classmethod def name(cls): return "my-data-source" spark.dataSource.register(MyDataSource){code} Users can then use the name of the data source as the format SPARK-45639 {code:java} spark.read.format("my-data-source").load(){code} was: Support registering Python data sources. Users can register a Python data source and later use reference it using its name. {code:java} class MyDataSource(DataSource): @classmethod def name(cls): return "my-data-source" spark.dataSource.register(MyDataSource){code} Users can then use the name of the data source as the format {code:java} spark.read.format("my-data-source").load(){code} > Support registering Python data sources > --------------------------------------- > > Key: SPARK-45713 > URL: https://issues.apache.org/jira/browse/SPARK-45713 > Project: Spark > Issue Type: Sub-task > Components: PySpark > Affects Versions: 4.0.0 > Reporter: Allison Wang > Priority: Major > > Support registering Python data sources. > Users can register a Python data source and later use reference it using its > name. > {code:java} > class MyDataSource(DataSource): > @classmethod > def name(cls): > return "my-data-source" > spark.dataSource.register(MyDataSource){code} > Users can then use the name of the data source as the format SPARK-45639 > {code:java} > spark.read.format("my-data-source").load(){code} -- 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