I would like to be able to group on the result of applying a function to one of the columns.
For example, suppose that I have a column :DATETIME which stores the year/month/day/h/m/s.
In some queries I might want to group on the DATE only, whereas in other queries I might want to group
on the TIME.
Hence, it would like to write something like this:
@apply t begin
@groupby Date.Date.(:DATETIME) {length = length(_)}
end
Is this type of operation currently supported, but I am just using the wrong syntax? As a workaround I could always add more columns using @transform to explicitly split the DATETIME into DATE and TIME, but I was wondering if there is another solution.
I would like to be able to group on the result of applying a function to one of the columns.
For example, suppose that I have a column
:DATETIMEwhich stores the year/month/day/h/m/s.In some queries I might want to group on the DATE only, whereas in other queries I might want to group
on the TIME.
Hence, it would like to write something like this:
Is this type of operation currently supported, but I am just using the wrong syntax? As a workaround I could always add more columns using
@transformto explicitly split the DATETIME into DATE and TIME, but I was wondering if there is another solution.