Commit a8c4ead
authored
Empty schema to null (#942)
## Description
<!-- Provide a brief summary of the changes made and the issue they aim
to address.-->
Origin:
com.databricks.sql.hive.thriftserver.DatabricksJdbcDialectTestSuite in
runtime/Spark fails because the JDBC URL looks like
`jdbc:databricks://sample-host.18.azuredatabricks.net:9999/;`. Note the
empty string between the last slash and semi-colon. When parsing JDBC
URL, we look for a schema entry between last slash (if present) and
semi-colon. If it is empty, we should make it to null.
## Testing
<!-- Describe how the changes have been tested-->
- Unit test
- com.databricks.sql.hive.thriftserver.DatabricksJdbcDialectTestSuite
## 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 80ca302 commit a8c4ead
File tree
3 files changed
+14
-1
lines changed- src
- main/java/com/databricks/jdbc/api/impl
- test/java/com/databricks/jdbc/api/impl
3 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
156 | 167 | | |
157 | 168 | | |
158 | 169 | | |
| |||
0 commit comments