altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

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

Open anandgupta42 opened this issue 8 months ago • 1 comments

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)

anandgupta42 avatar Mar 17 '26 18:03 anandgupta42

Completed in PR #221.

anandgupta42 avatar Mar 18 '26 00:03 anandgupta42