Commit 39db3e9
authored
fix: Improve perf on schema enumeration/validation (#1168)
Resolves #1166
<!---
Include the number of the issue addressed by this PR above if
applicable.
Example:
resolves #1234
Please review our pull request review process in CONTRIBUTING.md before
your proceed.
-->
### Description
Apparently we've had a performance regression for a while due to
switching to GetSchemas over using show schemas for everything. Prior to
1.9, you could get the show schema behavior if you were on HMS but
didn't specify a database. Unclear why GetSchema's performance is poor,
but even in my non-HMS testing, show schemas is faster.
### Checklist
- [x] I have run this code in development and it appears to resolve the
stated issue
- [x] This PR includes tests, or tests are not required/relevant for
this PR
- [x] I have updated the `CHANGELOG.md` and added information about my
change to the "dbt-databricks next" section.1 parent 70bec4d commit 39db3e9
2 files changed
Lines changed: 8 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 303 | + | |
313 | 304 | | |
314 | 305 | | |
315 | 306 | | |
316 | 307 | | |
317 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
318 | 311 | | |
319 | 312 | | |
320 | 313 | | |
| |||
0 commit comments