dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

Support a new type that represents a time interval

Open gitlw opened this issue 5 years ago • 2 comments

Experience Report

Note: Feature requests are judged based on user experience and modeled on Go Experience Reports. These reports should focus on the problems: they should not focus on and need not propose solutions.

What you wanted to do

As discussed in #3883 , the user is requesting to have a data type that represents a time interval. Ideally, we should support

  • operations between a dateTime and a time interval. That is adding or subtracting the interval from a dateTime should generates another dateTime.
  • if a time interval predicate is indexed, we should support operations such as eq, gt, lt etc just like those on the int type

What you actually did

Why that wasn't great, with examples

Any external references to support your case

gitlw avatar Aug 30 '19 19:08 gitlw

This looks like a reasonable feature request.

I'm tagging it as accepted, which means it will get into our backlog of features to consider.

If we decide to implement it, we'll post an update here.

MichaelJCompton avatar Mar 11 '20 23:03 MichaelJCompton

Github issues have been deprecated. This issue has been moved to discuss. You can follow the conversation there and also subscribe to updates by changing your notification preferences.

drawing

minhaj-shakeel avatar Jul 20 '20 18:07 minhaj-shakeel