Skip to content

feat: pluggable components, IR layer, multi-backend, REST API server#114

Merged
rafafrdz merged 4 commits into
masterfrom
feature/lote8-plugins-ir-backend-server
Mar 25, 2026
Merged

feat: pluggable components, IR layer, multi-backend, REST API server#114
rafafrdz merged 4 commits into
masterfrom
feature/lote8-plugins-ir-backend-server

Conversation

@rafafrdz

Copy link
Copy Markdown
Member

Summary

Pluggable Component System (#112, #113)

Inspired by datastream-connector-engine:

  • Trait interfaces: TeckelReader, TeckelTransformer, TeckelWriter with standard read/transform/write methods
  • PluginRegistry: Register/resolve components by name or class path, dynamic class loading via reflection
  • ComponentResolver: Core namespace + full-class-path resolution (like datastream-connector-engine's components.py)
  • Custom transformation: custom: in YAML delegates to a registered TeckelTransformer plugin
  • YAML components: section: Configure readers/transformers/writers by alias with core name or external class

IR Layer (#102)

  • IRNode sealed trait with Scan, Project, Filter, Aggregate, Sort, JoinNode, Sink, Transform
  • IRPlan DAG with topological ordering, fan-out analysis, root/sink queries
  • IRBuilder converts existing Context[Asset] to IRPlan
  • Optimizer with predicate pushdown pass

Multi-Backend Abstraction (#103)

  • Backend trait with execute and dryRun methods
  • SparkBackend implementation (bridges to existing semantic layer)
  • DataFusionBackend placeholder for future integration
  • config.backend field in YAML

REST API Server (#105)

  • Lightweight embedded server using JDK com.sun.net.httpserver (zero extra deps)
  • Endpoints: health, dry-run, doc generation, graph visualization, validation
  • CLI: --server flag with optional --port N

Closes #102, #103, #105, #112, #113

Test plan

  • sbt clean compile passes
  • CI green

Adds a lightweight REST API server using JDK's com.sun.net.httpserver
(no extra dependencies). Endpoints: health check, dry-run, doc generation,
graph visualization, and YAML validation. Accessible via --server [--port N]
CLI flag.
@rafafrdz rafafrdz merged commit bcdcc50 into master Mar 25, 2026
2 of 5 checks passed
@rafafrdz rafafrdz deleted the feature/lote8-plugins-ir-backend-server branch March 25, 2026 06:38
@github-actions github-actions Bot added feature New feature or request labels Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement IR layer with optimization passes

1 participant