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

SQL: greatest function does not work for datetime type #380

Closed
timsehn opened this issue Feb 7, 2020 · 0 comments · Fixed by dolthub/go-mysql-server#65
Closed

SQL: greatest function does not work for datetime type #380

timsehn opened this issue Feb 7, 2020 · 0 comments · Fixed by dolthub/go-mysql-server#65
Assignees

Comments

@timsehn
Copy link
Sponsor Contributor

timsehn commented Feb 7, 2020

For:

https://www.dolthub.com/repositories/Liquidata/corona-virus

I want to add a last updated column to the current view. I should be able to add:

greatest(current_cases.`last updated`, current_deaths.`last updated`, current_recovered.`last updated`) as `last updated`

But greatest does not seem to be implemented for datetime yet. Can we fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants