Question: ##Filter the data using Spark SQL id query = SELECT warc.server, warc. date FROM warc WHERE warc.date ' 2 0 1 7 -

##Filter the data using Spark SQL
id query = "SELECT warc.server, warc. date \
FROM warc \
WHERE warc.date '2017-03-22T22:00:00Z' and warc.date '2017-03-22T23:00:00Z'"
This query works but the SORT BY does not work
##Filter the data using Spark SQL
id query = "SELECT warc.server, warc.date \
FROM warc \
WHERE warc.date '2017-03-22T22:00:00Z' and warc.date '2017-03-22T23:00:00Z'\
ORDER BY warc. date ASC"
warc.date is timestamp ex.2017-02-2300:16:45
Do I need to do any conversion of the timestamp

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!