Skip to content

Commit

Permalink
ci(exasol): add the astronauts dataset for testing (#9635)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman authored Jul 18, 2024
1 parent 7179cc6 commit 66e150f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 11 deletions.
30 changes: 29 additions & 1 deletion ci/schema/exasol.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CREATE OR REPLACE TABLE EXASOL."awards_players"
"yearID" BIGINT,
"lgID" VARCHAR(256),
"tie" VARCHAR(256),
"notes" VARCHAR(256)
"notes" VARCHAR(256)
);

CREATE OR REPLACE TABLE EXASOL."functional_alltypes"
Expand All @@ -68,11 +68,39 @@ CREATE OR REPLACE TABLE EXASOL."functional_alltypes"
"month" INTEGER
);

CREATE OR REPLACE TABLE EXASOL."astronauts"
(
"id" INTEGER,
"number" INTEGER,
"nationwide_number" INTEGER,
"name" VARCHAR(256),
"original_name" VARCHAR(256),
"sex" VARCHAR(256),
"year_of_birth" INTEGER,
"nationality" VARCHAR(256),
"military_civilian" VARCHAR(256),
"selection" VARCHAR(256),
"year_of_selection" INTEGER,
"mission_number" INTEGER,
"total_number_of_missions" INTEGER,
"occupation" VARCHAR(256),
"year_of_mission" INTEGER,
"mission_title" VARCHAR(256),
"ascend_shuttle" VARCHAR(256),
"in_orbit" VARCHAR(256),
"descend_shuttle" VARCHAR(256),
"hours_mission" DOUBLE PRECISION,
"total_hrs_sum" DOUBLE PRECISION,
"field21" INTEGER,
"eva_hrs_mission" DOUBLE PRECISION,
"total_eva_hrs" DOUBLE PRECISION
);

IMPORT INTO EXASOL."diamonds" FROM LOCAL CSV FILE '/data/diamonds.csv' COLUMN SEPARATOR = ',' SKIP = 1;
IMPORT INTO EXASOL."batting" FROM LOCAL CSV FILE '/data/batting.csv' COLUMN SEPARATOR = ',' SKIP = 1;
IMPORT INTO EXASOL."awards_players" FROM LOCAL CSV FILE '/data/awards_players.csv' COLUMN SEPARATOR = ',' SKIP = 1;
IMPORT INTO EXASOL."functional_alltypes" FROM LOCAL CSV FILE '/data/functional_alltypes.csv' COLUMN SEPARATOR = ',' SKIP = 1;
IMPORT INTO EXASOL."astronauts" FROM LOCAL CSV FILE '/data/astronauts.csv' COLUMN SEPARATOR = ',' SKIP = 1;

CREATE OR REPLACE TABLE EXASOL."win"
(
Expand Down
11 changes: 1 addition & 10 deletions ibis/backends/tests/test_dot_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
from ibis import _
from ibis.backends import _get_backend_names
from ibis.backends.tests.base import PYTHON_SHORT_VERSION
from ibis.backends.tests.errors import (
ExaQueryError,
GoogleBadRequest,
OracleDatabaseError,
)
from ibis.backends.tests.errors import GoogleBadRequest, OracleDatabaseError

dot_sql_never = pytest.mark.never(
["dask", "pandas"], reason="dask and pandas do not accept SQL"
Expand Down Expand Up @@ -263,11 +259,6 @@ def test_con_dot_sql_transpile(backend, con, dialect, df):

@dot_sql_never
@pytest.mark.notimpl(["druid", "polars"])
@pytest.mark.notimpl(
["exasol"],
raises=ExaQueryError,
reason="loading the test data is a pain because of embedded commas",
)
def test_order_by_no_projection(backend):
con = backend.connection
expr = (
Expand Down

0 comments on commit 66e150f

Please sign in to comment.