Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

filter by timestamp scala

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|
+-------+-------------------+
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filter #timestamp #scala
ADD COMMENT
Topic
Name
4+8 =