You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/11/09 02:47:41 UTC

[GitHub] [shardingsphere] FileNotFoundExcetion commented on issue #20532: NullPointException

FileNotFoundExcetion commented on issue #20532:
URL: https://github.com/apache/shardingsphere/issues/20532#issuecomment-1308127381

   select temp.rideMileageMonth,
          temp.ridingTimeMonth,
   	   temp.avgRideMileageDay,
   	   temp.brakesTimesMonth,
   	   temp.accelerationTimesMonth,
   	   temp.bendingTimesMonth,
   	   temp.maxSpeed
    from (
    select ifnull(sum(ride_mileage) * 1000, 0)                          rideMileageMonth
            , sum(riding_time)                                             ridingTimeMonth
            , round(sum(ride_mileage) * 1000 / day (last_day(#{month})),2) avgRideMileageDay
            , sum(brakes_times)                                            brakesTimesMonth
            , sum(acceleration_times)                                      accelerationTimesMonth
            , sum(bending_times)                                           bendingTimesMonth
            , round(max(max_speed), 2)                                     maxSpeed
       from ride_history
       where del_flag = '0'
         and device_id = #{deviceId}
         and user_id = #{userId}
         and end_time between str_to_date(#{month}, '%Y-%m-%d') and date_add(str_to_date(#{month}, '%Y-%m-%d'), interval 1 month)
         and #{expireTime} >= end_time
         and sharding_id between #{shardingParams.startTimeStamp} and #{shardingParams.endTimeStamp}
   	  ) temp 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org