Skip to content
Snippets Groups Projects
Commit b625ff15 authored by Callum Herries's avatar Callum Herries
Browse files

Update sparksql

parent c46aa639
Branches
Tags
No related merge requests found
......@@ -87,7 +87,7 @@
(defmethod sql.qp/->honeysql [:hive-like :now]
[_driver _clause]
(hsql/call :trunc :current_timestamp (hx/literal :second)))
(hsql/call :trunc (hsql/call :current_timestamp) (hx/literal :second)))
(defmethod sql.qp/date [:hive-like :default] [_ _ expr] (hx/->timestamp expr))
(defmethod sql.qp/date [:hive-like :minute] [_ _ expr] (trunc-with-format "yyyy-MM-dd HH:mm" (hx/->timestamp expr)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment