GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [DBSP][SQL] Incremental constant operators by mihaibudiu · Pull Request #7886 · feldera/feldera

Conversation

@mihaibudiu

@mihaibudiu mihaibudiu commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Two commits: one adding an IncrementalConstantGenerator operator in DBSP, and the other adding support in the compiler. An incremental constant is a constant followed by a Differentiator, but it's more efficient to implement it as a single operator. Performance is probably not as important as uniformity and simplicity of the code generated.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mythical-fred-oss

mythical-fred-oss Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

fred-review did not finish; see https://github.com/feldera/feldera/actions/runs/42325328478

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gz
gz approved these changes Nov 7, 2026
View reviewed changes
Comment thread crates/dbsp/src/operator/generator.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

mythical-fred-oss[bot]
mythical-fred-oss Bot reviewed Nov 7, 2026
View reviewed changes
Comment thread ...ain/java/org/dbsp/sqlCompiler/compiler/visitors/outer/NoIntegralOrDifferentiatorVisitor.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@mythical-fred-oss

mythical-fred-oss Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

What I ran

Check Result
cargo test -p dbsp --lib generator (2 new tests) ✅ pass
mvn test -Dtest=RecursiveTests,IncrementalUnboundedStateTests ✅ 62/62
mvn test -Dtest=InternalNowTests ❌ 3/3 fail: Circuit contains a differentiation operator (see inline comment)

Findings

  • bug (high): The new NoIntegralOrDifferentiatorVisitor breaks every NOW() query that still has a DBSPNowOperator → D pair. CI will go red.
  • missing (medium), gate "tests for changed behaviour": The compiler commit changes the generated circuit but adds no Java tests. Tests should cover these rewrites:
    • PullFilterVisitor folding a filter into an incremental constant.
    • RemoveIAfterD turning I(incremental constant) into a plain constant.
    • CSE keeping a ConstantOperator and an IncrementalConstantOperator with the same rows distinct.
    • PropagateEmptySources/RemoveConstantFilters producing an empty incremental constant.
    • A JSON round trip of the new operator (fromJson).
  • pitfall (medium), checkpoint compatibility: Existing pipelines compiled with the old ConstantGenerator+Differentiator pair will get new persistent IDs on upgrade. Everything downstream of a constant will then be treated as new and bootstrapped again. Please confirm that this is acceptable. If it is, note it in the PR description or release notes.
  • missing (medium), Rust test gap: No DBSP test covers a nested (recursive) scope, where clock_end resets emitted once per parent step and fixedpoint depends on it. No test covers bootstrapping a modified circuit either, which is what is_deterministic_source is for.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mihaibudiu added 2 commits November 6, 2026 19:43
@mihaibudiu
[dbsp] Add IncrementalConstantGenerator
a18fcaa
Signed-off-by: Mihai Budiu <[email protected]>
@mihaibudiu
[SQL] Replace differentiated constants with incremental constants
1e4f4ca
Signed-off-by: Mihai Budiu <[email protected]>
@mihaibudiu
mihaibudiu force-pushed the incremental-constant branch from fc26180 to 1e4f4ca Compare November 7, 2026 04:13
@mihaibudiu
mihaibudiu added this pull request to the merge queue Nov 7, 2026
Merged via the queue into main with commit 8b2f45b Nov 7, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@mihaibudiu
mihaibudiu deleted the incremental-constant branch November 7, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mythical-fred-oss mythical-fred-oss[bot] mythical-fred-oss[bot] left review comments
@gz gz gz approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@mihaibudiu @gz
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.