BiteTheDDDDt commented on issue #9711: URL: https://github.com/apache/incubator-doris/issues/9711#issuecomment-1133607520
> > > > > > > > > Isn't the floor rounded down? like floor(0.6)=0 > > @BiteTheDDDDt Yes, floor meas rounded down, and the second parameter in `day_floor('2022-05-03 13:09:20', 1)` meas add 1 more day why we should add the second param `period`? period looks like it's just the unit. formulately, `floor(x,period)=floor(x/period)*period` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org