startofday(Timestamp) vs bin(Timestamp, 1d) - 有什么理由比另一个更喜欢?

startofday(Timestamp) vs bin(Timestamp, 1d) - any reason to prefer one over the other?

当我汇总当天的数据时,我一直使用例如开始日期(时间戳)。

我经常看到其他人使用 bin(Timestamp, 1d)。

是否有任何理由(语义、性能或其他)偏爱其中之一?

这两个选项在语义和性能方面是等价的