Skip to content

feat: [Phase 1] altimate-core direct napi-rs bindings — 41 methods #216

@anandgupta42

Description

@anandgupta42

Phase 1: altimate-core Direct napi-rs Bindings

Parent: #214
Depends on: Phase 0

What

Replace 41 Python bridge methods with direct calls to @altimateai/altimate-core npm package (napi-rs Node.js bindings for the Rust SQL engine).

Sub-tasks

  • Verify @altimateai/altimate-core npm API matches Python guard.py signatures
  • Audit IFF/QUALIFY transpile pre/post processing in guard.py
  • Add @altimateai/altimate-core dependency
  • Create native/altimate-core.ts — 33 method wrappers
  • Create native/schema-resolver.ts — Schema.fromFile/fromJson/fromDdl
  • Create native/sql/analyze.ts — lint + semantics + safety composite
  • Create native/sql/optimize.ts — rewrite + lint composite
  • Create native/sql/translate.ts — transpile with IFF/QUALIFY transforms
  • Create native/sql/{format,fix,rewrite,diff,lineage}.ts
  • Register all 41 methods in dispatcher
  • Shadow mode parity tests (fuzzy comparison)
  • ALTIMATE_NATIVE_ONLY=1 passes for all 41 methods

Methods (41 total)

33 altimate_core.* + 8 composite sql.* (analyze, optimize, translate, format, fix, rewrite, diff, lineage.check)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions