Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Drivers] New features to replace hard-coded driver lists in tests #42602

Merged

Conversation

bshepherdson
Copy link
Contributor

  • :metadata/key-constraints for those databases which formally track
    PK and FK key constraints. Some databases (eg. Presto/Athena/Starburst
    family) don't support constraints like that, but do support querying
    based on foreign keys (which is the :foreign-keys feature).
  • :connection/multiple-databases for databases where a single
    connection can connect to many databases. This is the case for Athena,
    since it connects to an S3 bucket and exposes all files in the bucket
    as databases through that single connection.
  • Also removed a troublesome "all DBs except a huge list" case in the
    SSH tunnel tests with a shorter list of supported drivers.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bshepherdson and the rest of your teammates on Graphite Graphite

@metabase-bot metabase-bot bot added the .Team/QueryProcessor :hammer_and_wrench: label May 13, 2024
@bshepherdson bshepherdson requested review from snoe and lbrdnk May 13, 2024 19:59
@bshepherdson bshepherdson added the no-backport Do not backport this PR to any branch label May 13, 2024
Copy link

replay-io bot commented May 13, 2024

Status Complete ↗︎
Commit 53a6236
Results
⚠️ 5 Flaky
2503 Passed

- `:metadata/key-constraints` for those databases which formally track
  PK and FK key constraints. Some databases (eg. Presto/Athena/Starburst
  family) don't support constraints like that, but do support querying
  based on foreign keys (which is the `:foreign-keys` feature).
- `:connection/multiple-databases` for databases where a single
  connection can connect to many databases. This is the case for Athena,
  since it connects to an S3 bucket and exposes all files in the bucket
  as databases through that single connection.
- Also removed a troublesome "all DBs except a huge list" case in the
  SSH tunnel tests with a shorter list of supported drivers.
@bshepherdson bshepherdson force-pushed the drivers-features-for-key-constraints-and-multi-db branch from 9d3dcaf to 53a6236 Compare May 13, 2024 21:02
Copy link
Contributor

@metamben metamben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bshepherdson bshepherdson merged commit 50a03a1 into master May 14, 2024
109 checks passed
@bshepherdson bshepherdson deleted the drivers-features-for-key-constraints-and-multi-db branch May 14, 2024 17:06
Copy link

@bshepherdson Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone?

bshepherdson added a commit that referenced this pull request May 22, 2024
These were added in #42602 but I neglected to update the changelog.
Their defaults should serve for most drivers.
bshepherdson added a commit that referenced this pull request May 22, 2024
These were added in #42602 but I neglected to update the changelog.
Their defaults should serve for most drivers.
github-actions bot pushed a commit that referenced this pull request May 22, 2024
These were added in #42602 but I neglected to update the changelog.
Their defaults should serve for most drivers.
metabase-bot bot added a commit that referenced this pull request May 22, 2024
These were added in #42602 but I neglected to update the changelog.
Their defaults should serve for most drivers.

Co-authored-by: Braden Shepherdson <braden@metabase.com>
oisincoveney pushed a commit that referenced this pull request May 22, 2024
These were added in #42602 but I neglected to update the changelog.
Their defaults should serve for most drivers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch .Team/QueryProcessor :hammer_and_wrench:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants