feat(resource): migrate duckdb to inherit from database-analytical #2037

Open
opened 2026-04-03 03:09:07 +00:00 by freemo · 3 comments
Owner

Metadata

  • Branch: feat/v360/db-analytical-inheritance
  • Commit Message: feat(resource): migrate duckdb to inherit database-analytical
  • Milestone: v3.6.0
  • Parent Epic: #1020

Background

With the abstract database-analytical base type defined (see #2035), the duckdb resource type must be updated to inherit from database-analytical instead of being a flat top-level type. This preserves backward compatibility — existing resources with type duckdb continue to work.

Expected Behavior

  • duckdb resource type inherits from database-analytical
  • Existing resources of type duckdb are not broken (backward-compatible)
  • duckdb passes ResourceTypeSpec.from_config() validation
  • Inheritance chain: duckdbdatabase-analyticaldatabase (depth = 3, within ADR-042 limit)

Acceptance Criteria

  • duckdb type config updated to set parent to database-analytical
  • Existing resources with type duckdb still load and resolve correctly
  • duckdb passes ResourceTypeSpec.from_config() validation
  • Inheritance chain depth ≤ 5 levels (ADR-042)
  • Behave BDD unit tests updated/added for the new inheritance chain
  • nox passes with coverage ≥ 97%

Dependencies

  • Blocked by: #2035 (abstract base types must exist first)
  • Blocks: #(DatabaseResourceHandler polymorphic resolution issue)

Subtasks

  • Update duckdb type config to set parent to database-analytical
  • Verify backward compatibility: existing duckdb resource fixtures still resolve
  • Update Behave feature tests to assert new inheritance chain
  • Run nox and confirm all stages pass

Definition of Done

  • All subtasks completed
  • Tests written and passing
  • All nox stages pass
  • Coverage ≥ 97%

Automated by CleverAgents Bot
Supervisor: Unknown | Agent: ca-epic-planner

## Metadata - **Branch**: `feat/v360/db-analytical-inheritance` - **Commit Message**: `feat(resource): migrate duckdb to inherit database-analytical` - **Milestone**: v3.6.0 - **Parent Epic**: #1020 ## Background With the abstract `database-analytical` base type defined (see #2035), the `duckdb` resource type must be updated to inherit from `database-analytical` instead of being a flat top-level type. This preserves backward compatibility — existing resources with type `duckdb` continue to work. ## Expected Behavior - `duckdb` resource type inherits from `database-analytical` - Existing resources of type `duckdb` are not broken (backward-compatible) - `duckdb` passes `ResourceTypeSpec.from_config()` validation - Inheritance chain: `duckdb` → `database-analytical` → `database` (depth = 3, within ADR-042 limit) ## Acceptance Criteria - [ ] `duckdb` type config updated to set parent to `database-analytical` - [ ] Existing resources with type `duckdb` still load and resolve correctly - [ ] `duckdb` passes `ResourceTypeSpec.from_config()` validation - [ ] Inheritance chain depth ≤ 5 levels (ADR-042) - [ ] Behave BDD unit tests updated/added for the new inheritance chain - [ ] `nox` passes with coverage ≥ 97% ## Dependencies - Blocked by: #2035 (abstract base types must exist first) - Blocks: #(DatabaseResourceHandler polymorphic resolution issue) ## Subtasks - [ ] Update `duckdb` type config to set parent to `database-analytical` - [ ] Verify backward compatibility: existing `duckdb` resource fixtures still resolve - [ ] Update Behave feature tests to assert new inheritance chain - [ ] Run `nox` and confirm all stages pass ## Definition of Done - [ ] All subtasks completed - [ ] Tests written and passing - [ ] All nox stages pass - [ ] Coverage ≥ 97% --- **Automated by CleverAgents Bot** Supervisor: Unknown | Agent: ca-epic-planner
freemo added this to the v3.6.0 milestone 2026-04-03 03:21:26 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Medium (confirmed)
  • Milestone: v3.6.0 (confirmed — database resource hierarchy)
  • MoSCoW: Should Have — Part of the database resource hierarchy chain. Migrating duckdb to inherit from database-analytical is required for the polymorphic handler resolution (#2039).
  • Parent Epic: #1020 (confirmed correct)
  • Dependency: Blocked by #2035

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: Medium (confirmed) - **Milestone**: v3.6.0 (confirmed — database resource hierarchy) - **MoSCoW**: Should Have — Part of the database resource hierarchy chain. Migrating duckdb to inherit from `database-analytical` is required for the polymorphic handler resolution (#2039). - **Parent Epic**: #1020 (confirmed correct) - **Dependency**: Blocked by #2035 --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Medium
  • Milestone: v3.6.0
  • MoSCoW: Should Have — already correctly labeled; migrating duckdb to analytical hierarchy
  • Parent Epic: #1020 (Database resource hierarchy restructuring)

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: Medium - **Milestone**: v3.6.0 - **MoSCoW**: Should Have — already correctly labeled; migrating duckdb to analytical hierarchy - **Parent Epic**: #1020 (Database resource hierarchy restructuring) --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Medium (unchanged)
  • Milestone: v3.6.0 (already assigned)
  • MoSCoW: Should Have — Migrating duckdb to inherit from database-analytical completes the database hierarchy restructuring. Depends on #2035 (base type definitions).
  • Parent Epic: #1020 (Database resource hierarchy restructuring)

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified ✅ - **Priority**: Medium (unchanged) - **Milestone**: v3.6.0 (already assigned) - **MoSCoW**: Should Have — Migrating duckdb to inherit from `database-analytical` completes the database hierarchy restructuring. Depends on #2035 (base type definitions). - **Parent Epic**: #1020 (Database resource hierarchy restructuring) --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#2037
No description provided.