Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How to query Hive to do timestamp range search

avatar
Explorer

Hive_timestamp2.png

Hive_timestamp.png

1 ACCEPTED SOLUTION

avatar
Explorer

You need to put single quotes around your timestamps.

 

Example) select * from dev_synchrophasor.si_co where `timestamp` between '2017-03-01 00:00:03.00' and '2017-03-01 00:00:10.0'

 

Hope that helps!

View solution in original post

3 REPLIES 3

avatar
Explorer

You need to put single quotes around your timestamps.

 

Example) select * from dev_synchrophasor.si_co where `timestamp` between '2017-03-01 00:00:03.00' and '2017-03-01 00:00:10.0'

 

Hope that helps!

avatar
Explorer

Hive_timestamp3.png

avatar
Explorer
Thanks, Ryan. It works.