Skip to content

Add instrumentation for recording add_query, get_relation_config, is_uniform, has_dbr_capability, and is_cluster methods#1508

Open
ajhlee-dbt wants to merge 7 commits into
databricks:mainfrom
dbt-labs:ajhlee/record-adapter-methods
Open

Add instrumentation for recording add_query, get_relation_config, is_uniform, has_dbr_capability, and is_cluster methods#1508
ajhlee-dbt wants to merge 7 commits into
databricks:mainfrom
dbt-labs:ajhlee/record-adapter-methods

Conversation

@ajhlee-dbt

Copy link
Copy Markdown

Resolves #N/A.

Description

Instruments the following adapter functions for recording:

  • has_dbr_capability and is_cluster (via the auto record decorator)
  • add_query
  • get_relation_config
  • is_uniform

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

ajhlee-dbt and others added 6 commits June 12, 2026 02:18
Signed-off-by: Anna Lee <anna.lee@dbtlabs.com>
Signed-off-by: Anna Lee <anna.lee@dbtlabs.com>
Signed-off-by: Anna Lee <anna.lee@dbtlabs.com>
Signed-off-by: Anna Lee <anna.lee@dbtlabs.com>
Signed-off-by: Anna Lee <anna.lee@dbtlabs.com>
…tion

Annotate the new record dataclass methods (_to_dict, __init__, _from_dict)
to satisfy mypy no-untyped-def, and apply ruff import ordering.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Anna Lee <anna.lee@dbtlabs.com>
@ajhlee-dbt ajhlee-dbt force-pushed the ajhlee/record-adapter-methods branch from 1d3c89c to 1528a6a Compare June 12, 2026 06:18
@ajhlee-dbt ajhlee-dbt marked this pull request as ready for review June 12, 2026 06:18
Signed-off-by: Anna Lee <anna.lee@dbtlabs.com>
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.

1 participant