You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UNIX_TIMESTAMP(CONCAT(SPLIT(RecordedTimeStamp,'T')[0],' ',SUBSTR(SPLIT(RecordedTimeStamp,'T')[1],0,8)),'yyyy-MM-dd hh:mm:ss') as unixtimestamp,
AVG(Lat) as cLat,
AVG(Lon) as cLon,
AVG(Speed) as AverageSpeed,
MAX(EngineLoad) as EngineLoad,
MAX(EngineRPM) as EngineRPM,
MAX(DistanceWithMIL) as DistanceWithMIL,
MAX(Runtime) as Runtime
FROM tripdata
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');
-- year=${hiveconf:Year} and month=${hiveconf:Month} and day=${hiveconf:Day}