Giter Site home page Giter Site logo

Comments (4)

bernhardttom avatar bernhardttom commented on July 16, 2024

Check under DeploymentOptions there is a StatementNameRuntimeOption that sets the statement name

from esper.

DevDrake avatar DevDrake commented on July 16, 2024

Thanks

It looks that providing something like

public static class StatementNameRuntimeOptionImpl implements StatementNameRuntimeOption {
    @Override
    public String getStatementName(final StatementNameRuntimeContext statementNameRuntimeContext) {
        return "stmt-" + statementNameRuntimeContext.getStatementId();
    }
}

gives similar results to esper pre 8.

Then looking at statementId that is incremented for every deployment, does it mean that statementName being mostly stmt-0 (for not named statements) is a bug ?
For me it looks that way.

To have it behaves automatically with having option of using @name() we need to use string comparison of some kind with "guessed" automatic name like "stmt-0" doesn't seems perfect. It also look that it may behaves slight different when statement is partitioned.

from esper.

bernhardttom avatar bernhardttom commented on July 16, 2024

In Esper 8 the combination of deployment id and statement name identifies each statement in a runtime

from esper.

DevDrake avatar DevDrake commented on July 16, 2024

What a significance statementId does have then ?
Source of my confusion is that the statementId is disconnected from default statementName.

Custom naming works ok, but it's quiet strange how it is working internally. First @name or default name is applied and then as an option it can be overridden. The problem here is StatementNameRuntimeContext hasn't information what kind of name was provided to the statement (default or from @name).

from esper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.