Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
060e6d46
Unverified
Commit
060e6d46
authored
1 year ago
by
Cal Herries
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add back describe-database test coverage for redshift (#40446)
parent
f2960b1f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/metabase/driver/sql_jdbc/sync/describe_database_test.clj
+6
-4
6 additions, 4 deletions
.../metabase/driver/sql_jdbc/sync/describe_database_test.clj
with
6 additions
and
4 deletions
test/metabase/driver/sql_jdbc/sync/describe_database_test.clj
+
6
−
4
View file @
060e6d46
...
...
@@ -45,10 +45,12 @@
"All SQL JDBC drivers that use the default SQL JDBC implementation of `describe-database`. (As far as I know, this is
all of them.)"
[]
(
set
(
filter
#
(
identical?
(
get-method
driver/describe-database
:sql-jdbc
)
(
get-method
driver/describe-database
%
))
(
descendants
driver/hierarchy
:sql-jdbc
))))
(
conj
(
set
(
filter
#
(
identical?
(
get-method
driver/describe-database
:sql-jdbc
)
(
get-method
driver/describe-database
%
))
(
descendants
driver/hierarchy
:sql-jdbc
)))
;; redshift wraps the default implementation, but additionally filters tables according to the database name
:redshift
))
(
deftest
fast-active-tables-test
(
is
(
=
[
"CATEGORIES"
"CHECKINS"
"ORDERS"
"PEOPLE"
"PRODUCTS"
"REVIEWS"
"USERS"
"VENUES"
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment