Dependencies & cluster requirements
Dependencies & cluster requirements
Dependencies:
- ProphecySparkBasicsPython 0.0.1+
- ProphecySparkBasicsScala 0.0.1+
- UC dedicated clusters 14.3+ supported
- UC standard clusters 14.3+ supported
- Livy clusters 3.0.1+ supported
Parameters
DB Table
TheDB Table option dictates which table to use as the source to read from. You can use anything valid in a FROM clause of a SQL query. For example, instead of a table name, use a subquery in parentheses.
SQL Query
TheSQL Query option specifies which query to use as a subquery in the FROM clause. Spark also assigns an alias to the subquery clause. For example, Spark issues the following query to the JDBC Source:
- You cannot use the
queryandpartitionColumnoptions at the same time. - If you must specify the
partitionColumnoption, you can specify the subquery using thedbtableoption and qualify your partition columns using the subquery alias provided as part ofdbtable.
Source
The Source gem reads data from JDBC and allows you to optionally specify the following additional properties. Add these from the Search to pick a property field on the Properties tab.Source properties
Running stored procedures
UseExecute Pre Query or Execute Post Query to call a stored procedure in the external warehouse directly from a JDBC Source gem.
Because the Source gem always returns an output — even when the stored procedure itself produces none — you must still populate Data Source with a placeholder value (for example, a dummy table name or trivial query) to satisfy the gem’s Location configuration.
The JDBC Source gem has no input ports. If a stored procedure needs to run at a specific point in the pipeline rather than at the start, use gem phase to control execution order:
- Gems upstream of the stored procedure call: Phase 0.
- The JDBC Source gem running the stored procedure: Phase 1.
- Gems downstream of the stored procedure call: Phase 2.

