Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

issue-523 using tripDataWithoutNulls for inserting into tripDataInt #524

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/HDInsight/hivescripts/TripDataInt.hql
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ MAX(EngineLoad) as EngineLoad,
MAX(EngineRPM) as EngineRPM,
MAX(DistanceWithMIL) as DistanceWithMIL,
MAX(Runtime) as Runtime
FROM tripdata
FROM tripDataWithoutNulls
WHERE RecordedTimeStamp is not null
GROUP BY TripId, UserId, vin, UNIX_TIMESTAMP(CONCAT(SPLIT(RecordedTimeStamp,'T')[0],' ',SUBSTR(SPLIT(RecordedTimeStamp,'T')[1],0,8)),'yyyy-MM-dd hh:mm:ss');

Expand Down