You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Noritaka Sekiyama (Jira)" <ji...@apache.org> on 2020/06/17 07:56:00 UTC
[jira] [Created] (SPARK-32013) Support query execution before/after
reading/writing over JDBC
Noritaka Sekiyama created SPARK-32013:
-----------------------------------------
Summary: Support query execution before/after reading/writing over JDBC
Key: SPARK-32013
URL: https://issues.apache.org/jira/browse/SPARK-32013
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 3.0.0
Reporter: Noritaka Sekiyama
For ETL workload, there is a common requirement to perform SQL statement before/after reading/writing over JDBC.
Here's examples;
- Create a view with specific conditions
- Delete/Update some records
- Truncate a table (it is already possible in `truncate` option)
- Execute stored procedure
Currently `query` options is available to specify SQL statement against JDBC datasource when loading data as DataFrame.
https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html
However, this query is only for reading data, and it does not support the common examples listed above.
If Spark can support executing SQL statement against JDBC datasources before/after reading/writing over JDBC, it can cover a lot of common use-cases.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org