Implement grouping options for date & time types #429
Labels
ready
Ready for implementation
type: enhancement
New feature or request
work: backend
Related to Python, Django, and simple SQL
Milestone
Problem
Users may want to group their records with date and time fields by common intervals such as hours, months, quarters, years, etc. The appropriate grouping for a field will vary depend on the kind of data stored in that field. For example, if there are years ranging from 1500-2000 in the data, the user might want to group dates by century, but if the dates only range from 2008-2010, the user may want to group by month or quarter instead and centuries are useless.
We need to provide both useful grouping intervals for a given column and the ability to group by them.
Solution
EXTRACT
function. Documentation.century
forTIME
columns).This involves:
/api/v0/databases/<id>/types/
endpoint to store available grouping on this typeAdditional context
TIMESTAMP
data type in the backend #424DATE
data type in the backend #425TIME
data type in the backend #426The text was updated successfully, but these errors were encountered: