-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allow skipping build when running integration tests * Add known issue for scanning GEOMETRY columns * Change special types to :type/* * Speedup setup of Exasol db * Deactivate flaky test #21 * Review finding: add link to user guide Co-authored-by: jakobbraun <jakob.braun@posteo.de>
- Loading branch information
1 parent
2d52613
commit 47a84ae
Showing
12 changed files
with
170 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
{:linters {:unresolved-var { | ||
; False positive | ||
{:linters {:unresolved-var {; False positive | ||
:exclude [honeysql.core/call | ||
honeysql.core/raw | ||
metabase.util.honeysql-extensions/with-type-info]}}} | ||
metabase.util.honeysql-extensions/with-type-info]} | ||
:unresolved-symbol { | ||
:exclude [ | ||
; The defdataset macro expects a symbol as dataset name | ||
(metabase.test.data.interface/defdataset) | ||
; The run-mbql-query macro allows using $field shortcut syntax | ||
(metabase.test/run-mbql-query) | ||
]}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Changes | ||
|
||
* [0.1.1](changes_0.1.1.md) | ||
* [0.1.1](changes_0.2.0.md) | ||
* [0.1.0](changes_0.1.0.md) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# metabase-driver 0.2.0, released 2022-01-17 | ||
|
||
Code name: Exasol specific data types and fix for `TIMESTAMP` columns | ||
|
||
## Summary | ||
|
||
This release fixes two issues when reading `TIMESTAMP` columns: | ||
|
||
* Reading null values caused a `NullPointerException` in the driver. | ||
* Timestamp values are now read in UTC timezone instead of the local time zone. | ||
|
||
The release also adds support for Exasol specific data types `INTERVAL`, `GEOMETRY` and `HASHTYPE`. As Metabase does not support these types, they are returned as strings of Metabase type `:type/*`. There is an issue with scanning values of `GEOMETRY` columns, see [issue #20](https://github.com/exasol/metabase-driver/issues/20) and [user guide](../user_guide/user_guide.md#scanning-field-values-logs-an-exception-for-geometry-columns) for details. | ||
|
||
## Bugfixes | ||
|
||
* #17: Fixed reading `TIMESTAMP` columns | ||
* #6: Added support for Exasol specific data types `INTERVAL`, `GEOMETRY` and `HASHTYPE` | ||
|
||
## Dependency Updates | ||
|
||
(none) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(ns metabase.driver.exasol-test | ||
(:require [clojure.test :refer [deftest testing is]] | ||
[metabase.test :as mt] | ||
[metabase.test.util :as tu] | ||
[metabase.test.data :as td] | ||
[metabase.test.data.dataset-definitions :as dataset] | ||
[metabase.test.data.exasol-dataset-definitions :as exasol-dataset])) | ||
|
||
(deftest timezone-id-test | ||
(mt/test-driver :exasol | ||
(is (= "UTC" | ||
(tu/db-timezone-id))))) | ||
|
||
(deftest text-equals-empty-string-test | ||
(mt/test-driver :exasol | ||
(testing ":= with empty string should work correctly" | ||
(mt/dataset dataset/airports | ||
(is (= [1] | ||
(mt/first-row | ||
(mt/run-mbql-query "airport" {:aggregation [:count], :filter [:= $code ""]})))))))) | ||
|
||
(deftest exasol-data-types | ||
(mt/test-driver :exasol | ||
(td/dataset exasol-dataset/exasol-data-types | ||
(is (= [["null-values" nil nil nil nil] | ||
["non-null-values" "550e8400e29b11d4a716446655440000" "+05-03" "+02 12:50:10.123" "POINT (2 5)"]] | ||
(mt/rows (mt/run-mbql-query "data_types" {:fields [$name $hash $interval_ytm $interval_dts $geo] | ||
:order-by [[:asc $row_order]]}))))))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
(ns metabase.test.data.exasol-dataset-definitions | ||
(:require | ||
[metabase.test.data.interface :as tx])) | ||
|
||
(tx/defdataset exasol-data-types | ||
"Test data with all Exasol specific data types" | ||
[["data_types" | ||
; Columns | ||
[{:field-name "row_order", :base-type :type/Integer} | ||
{:field-name "name", :base-type :type/Text} | ||
{:field-name "hash", :base-type {:native "HASHTYPE"}} | ||
{:field-name "interval_ytm", :base-type {:native "INTERVAL YEAR TO MONTH"}} | ||
{:field-name "interval_dts", :base-type {:native "INTERVAL DAY TO SECOND"}} | ||
{:field-name "geo", :base-type {:native "GEOMETRY"}}] | ||
[; Rows | ||
[0 "null-values" nil nil nil nil] | ||
[1 "non-null-values" "550e8400-e29b-11d4-a716-446655440000" "5-3" "2 12:50:10.123" "POINT(2 5)"]]]]) | ||
|
||
|
||
(tx/defdataset geometry | ||
"Test data for testing geometry functions, see https://docs.exasol.com/sql_references/geospatialdata/geospatialdata_overview.htm#GeospatialObjects" | ||
[["geo" | ||
; Columns | ||
[{:field-name "type", :base-type :type/Text} | ||
{:field-name "geo", :base-type {:native "GEOMETRY"}}] | ||
[; Rows | ||
["point" "POINT(2 5)"] | ||
["linestring" "LINESTRING(11 1, 15 2, 15 10)"] | ||
["linearring" "LINEARRING(2 1, 3 3, 4 1, 2 1)"] | ||
["polygon" "POLYGON((5 1, 5 5, 9 7, 10 1, 5 1), (6 2, 6 3, 7 3, 7 2, 6 2))"] | ||
["geometrycollection" "GEOMETRYCOLLECTION(POINT(2 5), LINESTRING(1 1, 15 2, 15 10))"] | ||
["multipoint" "MULTIPOINT(0.1 1.4, 2.2 3, 1 6.4)"] | ||
["multilinestring" "MULTILINESTRING((0 1, 2 3, 1 6), (4 4, 5 5))"] | ||
["multipolygon" "MULTIPOLYGON(((0 0, 0 2, 2 2, 3 1, 0 0)), ((4 6, 8 9, 12 5, 4 6), (8 6, 9 6, 9 7, 8 7, 8 6)))"]]]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters