I am working on a new driver for Exasol and have issues getting the tests running.
metabase.query-processor-test.remapping-test/self-referencing-test
This fails because the generated query fails:
-- Metabase
SELECT "CAM_42"."ta_self_referencing_user_users"."id" AS "id",
"CAM_42"."ta_self_referencing_user_users"."name" AS "name",
"CAM_42"."ta_self_referencing_user_users"."last_login" AS "last_login",
"CAM_42"."ta_self_referencing_user_users"."created_by" AS "created_by",
"ta_self_referencing_user_users"."name" AS "ta_self_referencing_user_users__name"
FROM "CAM_42"."ta_self_referencing_user_users"
LEFT JOIN "CAM_42"."ta_self_referencing_user_users" "ta_self_referencing_user_users" ON -- <--
"CAM_42"."ta_self_referencing_user_users"."created_by" = "ta_self_referencing_user_users"."id"
ORDER BY "CAM_42"."ta_self_referencing_user_users"."name" ASC
LIMIT 4
The issues is that the table alias in the marked line (<--
) is equal to the database table name which confuses Exasol and causes an exception:
java.sql.SQLException: identifier ta_self_referencing_user_users.id is ambiguous.
How can I customize the LEFT JOIN
clause in my driver to use a different alias than the table name?
metabase.query-processor-test.remapping-test/remappings-with-implicit-joins-test
This fails because the expected value is "2019-11-06T16:38:50.134Z"
but the actual value is "2019-11-06 16:38:50.134"
(without the Z
timezone).
Which multimethod do I need to add in the driver to use the Z
timezone?
metabase.query-processor.reducible-test/cancelation-test
This fails because numbers are formatted with ,
instead of .
for decimal point:
expected: (thrown-with-msg?
clojure.lang.ExceptionInfo
#"Timed out after 1000\.0 µs\."
(if (instance? Throwable result) (throw result) result))
actual: #<clojure.lang.ExceptionInfo@141971c7 clojure.lang.ExceptionInfo: Timed out after 1000,0 µs. {:status :timed-out, :type :timed-out}>
I tried to environment variables MB_SITE_LOCALE=en
when starting the tests, but this broke some other tests that expected spanish text. Setting LANG=en
did not help either.