You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this still an issue? The below is successfully passing the tests:
var res = [];
res.push(alasql('create table one (dateField DATE)'));
res.push(alasql('insert into one values (\'2015.10.23\'), (\'2015.11.23\'), (\'2015.12.23\')'));
res.push(alasql('select MIN(dateField) min_d from one'));
res.push(alasql('select MAX(dateField) max_d from one'));
assert.deepEqual(res, [1, 3, [{min_d: '2015.10.23'}], [{max_d: '2015.12.23'}]]);
Activity
mathiasrw commentedon Sep 23, 2015
As I recall the min and max only works on numbers.
Its a good point supporting dates.
While we do that you can check out if you can use something like
thierrygervais commentedon Sep 24, 2015
Thank Mathias,
That's a good trick for now.
Best regards
Thierry
chryschabert commentedon May 27, 2019
Any plans to fix this ? Work arounds are ok, but it'd be nice to support MIN/MAX for date types as well.
mathiasrw commentedon Sep 5, 2019
Anyone are free to look into this. I have a feeling its not a hard fix.
chamakura commentedon Mar 17, 2020
Is this still an issue? The below is successfully passing the tests:
chryschabert commentedon Mar 18, 2020
It was fixed in January this year according to release notes, so I guess it is no longer an issue.