Repository navigation
allow metric view table type in sea mode - #1188
Conversation
There was a problem hiding this comment.
Pull request overview
Expands JDBC metadata table-type handling to include Metric Views (intended for SEA mode) and documents a new connection flag to control Metric View support.
Changes:
- Adds
METRIC_VIEWto the default allowed table types list. - Updates the next changelog to document
EnableMetricViewSupport.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/main/java/com/databricks/jdbc/common/MetadataResultConstants.java | Adds METRIC_VIEW to the default table types constant. |
| NEXT_CHANGELOG.md | Documents a new connection parameter for Metric View support. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| public static final String PARSE_SYNTAX_ERROR_SQL_STATE = "42601"; | ||
| public static final String[] DEFAULT_TABLE_TYPES = {"TABLE", "VIEW", "SYSTEM TABLE"}; | ||
| public static final String[] DEFAULT_TABLE_TYPES = { | ||
| "TABLE", "VIEW", "SYSTEM TABLE", "METRIC_VIEW" |
There was a problem hiding this comment.
DEFAULT_TABLE_TYPES is now always including METRIC_VIEW, which makes Metric Views part of the default behavior for all callers using this constant. This conflicts with the changelog note that EnableMetricViewSupport is default-disabled and is also broader than the PR title (SEA-mode specific). Consider keeping DEFAULT_TABLE_TYPES unchanged and adding METRIC_VIEW only in the SEA-mode path and only when EnableMetricViewSupport is enabled (e.g., build the table-types list dynamically based on mode + parameter).
| "TABLE", "VIEW", "SYSTEM TABLE", "METRIC_VIEW" | |
| "TABLE", "VIEW", "SYSTEM TABLE" |
Description
add metric view to allowed table types in sea mode
Testing
manual testing
Additional Notes to the Reviewer