Skip to content

allow metric view table type in sea mode - #1188

Merged
shivam2680 merged 1 commit into
mainfrom
shivam2680/mv-sea
Jan 27, 2026
Merged

shivam2680 merged 1 commit into
mainfrom
shivam2680/mv-sea

Conversation

@shivam2680

Copy link
Copy Markdown
Collaborator

Description

add metric view to allowed table types in sea mode

Testing

manual testing

Additional Notes to the Reviewer

@shivam2680
shivam2680 requested a review from gopalldb January 27, 2026 12:14
@shivam2680 shivam2680 self-assigned this Jan 27, 2026
Copilot AI review requested due to automatic review settings January 27, 2026 12:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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_VIEW to 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"

Copilot AI Jan 27, 2026

Copy link

Choose a reason for hiding this comment

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

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).

Suggested change
"TABLE", "VIEW", "SYSTEM TABLE", "METRIC_VIEW"
"TABLE", "VIEW", "SYSTEM TABLE"

Copilot uses AI. Check for mistakes.
Comment thread NEXT_CHANGELOG.md Resolved
@shivam2680
shivam2680 merged commit 0b7f644 into main Jan 27, 2026
17 of 19 checks passed
@shivam2680
shivam2680 deleted the shivam2680/mv-sea branch January 27, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants