Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

##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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions