You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Allison Wang (Jira)" <ji...@apache.org> on 2023/10/27 22:06:00 UTC
[jira] [Updated] (SPARK-45713) Support registering Python data sources
[ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org