Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add algebraic operations between dates #72

Open
ecyshor opened this issue Nov 6, 2018 · 2 comments
Open

Add algebraic operations between dates #72

ecyshor opened this issue Nov 6, 2018 · 2 comments
Labels
dsl Are specific to the dsl subproject enhancement

Comments

@ecyshor
Copy link
Contributor

ecyshor commented Nov 6, 2018

We have a number of operations which can be executed between dates and numbers, but no support to subtract two dates. This should produce a column of int as result.

@ecyshor ecyshor added enhancement dsl Are specific to the dsl subproject labels Nov 6, 2018
@erdebee
Copy link
Collaborator

erdebee commented Nov 16, 2018

I do not think this is true, there are magnets for DateTime to AddSubtractable.

select(const(new DateTime()) - 1)

compiles and produces a valid qry

@ecyshor
Copy link
Contributor Author

ecyshor commented Nov 16, 2018

That is true, but there is no support to subtract two columns which represent a date (this would return the number of days between the dates). Should be pretty straightforwards to implement the magnet for localdate, localdate, int

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dsl Are specific to the dsl subproject enhancement
Projects
None yet
Development

No branches or pull requests

2 participants