Skip to content

Commit

Permalink
round seconds-of-minute to int (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepansergeevitch authored Oct 14, 2024
1 parent 74ff461 commit 5e7c883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metabase/driver/firebolt.clj
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
(sql.qp/adjust-start-of-week :firebolt #(date-trunc "week" %) expr))

; Extraction functions
(defmethod sql.qp/date [:firebolt :second-of-minute] [_ _ expr] (extract "second" expr))
(defmethod sql.qp/date [:firebolt :second-of-minute] [_ _ expr] [:cast [:floor (extract "second" expr)] :int])
(defmethod sql.qp/date [:firebolt :minute-of-hour] [_ _ expr] (extract "minute" expr))
(defmethod sql.qp/date [:firebolt :hour-of-day] [_ _ expr] (extract "hour" expr))
(defmethod sql.qp/date [:firebolt :day-of-month] [_ _ expr] (extract "day" expr))
Expand Down

0 comments on commit 5e7c883

Please sign in to comment.