Skip to content

2.0.0

Latest

Choose a tag to compare

@fucangfy fucangfy released this 18 Mar 07:52
8107675

What's Changed

Added

  • Introduced SCQL 2.0 OpenCore architecture: new CompilerService gRPC API (api/v1alpha1/compiler.proto) with CompileSQL endpoint, and a new Go compiler package (pkg/interpreter/compiler/) replacing the old interpreter pipeline.
  • Added Perfetto-based tracing support in engine, controlled by --enable_trace and --trace_log_path flags.
  • Added GroupSecretSum and GroupSecretAvg operators using SPU secret-sharing, replacing the old HE-based group aggregation. Benchmarks show the new algorithm is 5-10x faster.
  • Added planner optimization rules: correlated subquery decorrelation, group-by threshold enforcement, JOIN reorder by party code, and consecutive selection merging.
  • Added Rr22Mode (low/fast) for PSI algorithm negotiation.
  • Added opencore-demo example and quickstart documentation for getting started with the new architecture.

Changed

  • breaking: Redesigned system architecture from Broker-based (P2P/Centralized) to native Compiler + Engine integration.
  • breaking: Executor.RunExecutionPlan() now returns *scql.QueryResponse instead of *scql.SCDBQueryResultResponse.
  • Refactored engine operators to use typed ExecContext accessor methods (GetInputTensor(), SetOutputTensor(), etc.) instead of manual tensor table lookups.
  • Refactored session negotiation: new Session::Negotiate() method handles streaming options, PSI options, and curve types via protobuf-serialized NegotiationOptions.
  • Consolidated StreamingOptions into SessionOptions.
  • Extracted RunPlanCore from EngineServiceImpl into a standalone function for reuse in both RPC and task modes.
  • Updated documentation to reflect the OpenCore architecture.

Removed

  • Removed SCDB centralized query server (pkg/scdb/, cmd/scdbserver/, cmd/scdbclient/, api/scdb_api.proto).
  • Removed Broker P2P coordination layer (pkg/broker/, cmd/broker/, cmd/brokerctl/, api/broker.proto).
  • Removed CCL (Column Control Language) authorization mechanism (api/ccl.proto, pkg/interpreter/ccl/).
  • Removed old interpreter/translator pipeline (pkg/interpreter/translator/, pkg/interpreter/interpreter.go, pkg/interpreter/svc/).
  • Removed cmd/regtest/, cmd/agent/, cmd/scqltool/, pkg/privilege/, pkg/executor/job_watcher.go.
  • Removed GroupHESum operator (replaced by GroupSecretSum/GroupSecretAvg).
  • Removed all legacy deployment guides, API references, CCL docs, and CI infrastructure for removed components.

Fixed

  • Fixed communication stats not accounting for initialization-phase network traffic.
  • Fixed potential async task lifecycle issues in RunPlanSync by switching from std::async to direct invocation.
  • Fixed null handling in window function, placing null values at the end.
  • Fixed missing DESC keyword when rebuilding ORDER BY statement.
  • Fixed interpreter creation time losing timezone information.