[Tarantool-patches] [PATCH resend v2 06/11] box, datetime: datetime comparison for indices
Oleg Babin
olegrok at tarantool.org
Sat Jul 31 09:30:39 MSK 2021
Thanks for your reply. See my answer below.
On 31.07.2021 01:18, Timur Safin wrote:
> Hello Oleg,
>
>
> : From: Oleg Babin<olegrok at tarantool.org>
> : Subject: Re: [Tarantool-patches] [PATCH resend v2 06/11] box, datetime:
> : datetime comparison for indices
> :
> : Thanks for your patch. One question below.
> :
> :
> : Also update with arithmetic operations doesn't work.
> :
> :
> : ```
> :
> : tarantool> box.space.dt:update({v}, {{'+', 2, 3}})
> : ---
> : - error: 'Argument type in operation ''+'' on field 2 does not match
> : field type: expected
> : a number'
> : ...
> :
> : tarantool> box.space.dt:update({v}, {{'+', 2, dt.week(1)}})
> : ---
> : - error: unsupported Lua type 'cdata'
> : ...
> :
> : ```
>
> Oh, shit, I didn't take those operations into considerations.
> Do they work similarly with decimal?
Looks like so. Moreover it seems we should support intervals as separate
type.
Currently the single way to update is get + sum + put/update (with =).
But I suppose native update will be needed anyway. At lest for SQL.
Will be it able to perform some operations with intervals and timestamps?
More information about the Tarantool-patches
mailing list