Skip to content

Conversation

kaklakariada
Copy link
Collaborator

Closes #78

MB_EXASOL_TEST_HOST=$EXASOL_HOST \
MB_EXASOL_TEST_PORT=$EXASOL_PORT \
MB_EXASOL_TEST_CERTIFICATE_FINGERPRINT=$fingerprint \
MB_EXASOL_TEST_USER=$EXASOL_USER \
MB_EXASOL_TEST_PASSWORD=$EXASOL_PASSWORD \
MB_DEV_ADDITIONAL_DRIVER_MANIFEST_PATHS="$exasol_driver_dir/resources/metabase-plugin.yaml" \
MB_ENCRYPTION_SECRET_KEY=$(openssl rand -base64 32) \
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required any more, breaks tests

(mt/dataset exasol-dataset/one-timestamp-per-day
(mt/dataset exasol-dataset/one-ts-per-day
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long dataset name caused assertion error in Metabase, because table name was longer than 30 chars

Comment on lines -118 to -131
(deftest substring->honeysql-test
(testing "substring without length argument"
(is (= #honeysql.types.SqlCall {:args ["arg" 4], :name :substring} (sql.qp/->honeysql :exasol [:substring "arg" 4]))))
(testing "substring with length argument"
(is (= #honeysql.types.SqlCall {:args ["arg" 4 6], :name :substring} (sql.qp/->honeysql :exasol [:substring "arg" 4 6])))))

(deftest concat->honeysql-test
(testing "concat with single argument"
(is (= #honeysql.types.SqlCall {:args ["arg1"], :name :concat} (sql.qp/->honeysql :exasol [:concat "arg1"]))))
(testing "concat with two arguments"
(is (= #honeysql.types.SqlCall {:args ["arg1" "arg2"], :name :concat} (sql.qp/->honeysql :exasol [:concat "arg1" "arg2"]))))
(testing "concat with three arguments"
(is (= #honeysql.types.SqlCall {:args ["arg1" "arg2" "arg3"], :name :concat} (sql.qp/->honeysql :exasol [:concat "arg1" "arg2" "arg3"])))))

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sql.qp/->honeysql was removed

@kaklakariada kaklakariada marked this pull request as ready for review July 31, 2025 12:44
Copy link

@pj-spoelders pj-spoelders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@kaklakariada kaklakariada merged commit 75a12f0 into main Aug 1, 2025
5 checks passed
@kaklakariada kaklakariada deleted the #78-upgrade-metabase-to-v0.50.36 branch August 1, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Metabase v0.50.36
3 participants