📜  按时间戳 scala 过滤 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:30.144000             🧑  作者: Mango

代码示例1
scala> df.filter(to_date(df("someTimeStamp")) === "2020-01-01").show
+-------+-------------------+
|someCol|      someTimeStamp|
+-------+-------------------+
|      1|2020-01-01 23:00:01|
|      2|2020-01-01 00:00:00|
|      3|2020-01-01 12:54:00|
+-------+-------------------+