Commit 53989bb
authored
Add support for Stored Procedures in JDBC driver (Phase 1) (#1051)
## Description
<!-- Provide a brief summary of the changes made and the issue they aim
to address.-->
This PR introduces phase 1 of stored procedure support in the Databricks
JDBC driver.
The driver now supports executing CALL statements that invoke stored
procedures on the server.
Key Capabilities
- ✅ Supports CALL syntax for stored procedure execution (e.g., CALL
my_proc(?, ?)).
- ✅ Supports input parameters, which can be set using standard JDBC APIs
(setInt, setString, etc.).
- ⚙️ Output parameters are currently supported only via SQL scripting
(e.g., procedures returning results via SELECT statements or variables
assigned inside scripts).
- 🚧 This is phase 1 — additional support for true OUT/INOUT parameters
will be introduced in a future phase (full fledged support using
CallableStatement.)
## Testing
<!-- Describe how the changes have been tested-->
Tested using unit tests, will also test manually.
## Additional Notes to the Reviewer
<!-- Share any additional context or insights that may help the reviewer
understand the changes better. This could include challenges faced,
limitations, or compromises made during the development process.
Also, mention any areas of the code that you would like the reviewer to
focus on specifically. -->1 parent 25552de commit 53989bb
4 files changed
Lines changed: 15 additions & 3 deletions
File tree
- src
- main/java/com/databricks/jdbc
- api/impl
- common
- test/java/com/databricks/jdbc/api/impl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
698 | | - | |
| 698 | + | |
| 699 | + | |
699 | 700 | | |
700 | 701 | | |
701 | 702 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | 162 | | |
| 163 | + | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
678 | 686 | | |
679 | 687 | | |
680 | 688 | | |
| |||
0 commit comments