We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 274fdf3 + f3db8a5 commit 762dad2Copy full SHA for 762dad2
1 file changed
src/metabase/driver/athena.clj
@@ -152,6 +152,11 @@
152
(hsql/raw (int amount))
153
(hx/->timestamp hsql-form)))
154
155
+;; fix to allow integer division to be cast as double (float is not suported by athena)
156
+(defmethod sql.qp/->float :athena
157
+ [_ value]
158
+ (hx/cast :double value))
159
+
160
;; keyword function converts database-type variable to a symbol, so we use symbols above to map the types
161
(defn- database-type->base-type-or-warn
162
"Given a `database-type` (e.g. `VARCHAR`) return the mapped Metabase type (e.g. `:type/Text`)."
0 commit comments