Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7820827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:26:44+00:00 2026-06-02T07:26:44+00:00

I am trying to use the time interval algebra methods on event types directly,

  • 0

I am trying to use the time interval algebra methods on event types directly, which, according to the docs, should be possible. I first tried to define some event types using the create schema syntax, like this:

create schema BaseEvent as (time long, name String) starttimestamp time
create schema ExtendedEvent as (moreInfo String) inherits BaseEvent

If I write a query like this

select *
    from BaseEvent.std:lastevent() as a, ExtendedEvent.std:lastevent() as b
    where a.after(b)

it actually compiles without error. But if I try to use a pattern instead of a join, like this

select *
    from pattern [ every (a = BaseEvent and b = ExtendedEvent) ]
    where a.after(b)

it gives me an error:

Date-time enumeration method 'after' requires either a Calendar,
Date or long value as input or events of an event type that
declares a timestamp property

I get the same error when I try to use POJOs that are derived from a base event type which has the timestamp properties defined as described in the documentation. While it works when I actually use the base type, it seems strange that Esper does not use the inherited time property in this case, when it does use information about inheritance it in every other case.

Am I doing something wrong? Is this a bug? Or maybe it just works as intended…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:26:46+00:00Added an answer on June 2, 2026 at 7:26 am

    It actually was kind of a bug or a ‘missing’ feature:

    There are actually two issues I got confused here. The first is that inheritance in Esper does not work that way, i.e. derived types do not automatically inherit timestamp properties. The other problem is, that the events resulting from a pattern are so called fragments, which are not supported by the date-time methods.

    The good thing is, with the upcoming version of Esper, 4.6.0, both ‘issues’ will be fixed: ESPER-659 and ESPER-660.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use an event listener for the first time. All samples I've
this is my first time trying to use document classes in AS3 and im
I am trying to use the Google generated API library for the first time
I am trying to use Bourne shell scripting for the first time ever, and
I'm trying to use Go package time to benchmark a function in my program.
I'm trying to use aspectj with compile time weaving to support annotations like Spring's
I'm trying to use the Timespan class to create a start time and a
I am trying to use matplotlib to create a graph to reflect real time
I am trying to figure out something - Every time I use AVAudioPlayer I
I am tryign to use Doctrine_Pager for the first time. So I have the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.