Closed
Bug 1270257
Opened 8 years ago
Closed 8 years ago
Add range function in presto
Categories
(Cloud Services Graveyard :: Metrics: Pipeline, defect, P3)
Cloud Services Graveyard
Metrics: Pipeline
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: benjamin, Unassigned)
References
Details
It would be nice to have a range function in presto so that I can search for missing data efficiently: SELECT date_add('day', -N, today()) FROM range(0, date_diff('day', '2015-12-01'::date, today()) Bonus, range that handles datetimes directly and not just integers. Exploding an array would be reasonable too, if a range() function that returns a rowset is not easy.
Comment 1•8 years ago
|
||
See also this issue: https://github.com/prestodb/presto/issues/2169 And the "generate_series" function in postgresql: http://www.postgresql.org/docs/current/static/functions-srf.html
Updated•8 years ago
|
Assignee: nobody → rvitillo
Updated•8 years ago
|
Points: --- → 1
Priority: -- → P3
Reporter | ||
Comment 2•8 years ago
|
||
There is now a `sequence` function in presto which I think does exactly what I want. It was added two weeks ago so I don't know whether it's in a release yet, and probably not on EMR.
Updated•8 years ago
|
Updated•8 years ago
|
Assignee: rvitillo → nobody
Comment 3•8 years ago
|
||
this will addressed by the upgrade
Comment 4•8 years ago
|
||
The Presto cluster has now been upgraded and the SEQUENCE function appears to be working.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•