Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(exasol): add the astronauts dataset for testing #9635

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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