Skip to content

Commit

Permalink
build: add pyarrow extra
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Mar 27, 2023
1 parent fde79fa commit 2f63ce1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ibis-backends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ jobs:
- postgres
sys-deps:
- libgeos-dev
- name: postgres
title: PostgreSQL + PyArrow
extras:
- postgres
- geospatial
- pyarrow
services:
- postgres
sys-deps:
- libgeos-dev
- name: impala
title: Impala
serial: true
Expand Down Expand Up @@ -188,6 +198,18 @@ jobs:
- postgres
sys-deps:
- libgeos-dev
- os: windows-latest
backend:
name: postgres
title: PostgreSQL + PyArrow
extras:
- postgres
- geospatial
- pyarrow
services:
- postgres
sys-deps:
- libgeos-dev
- os: windows-latest
backend:
name: impala
Expand Down
16 changes: 5 additions & 11 deletions ci/schema/postgresql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ CREATE TABLE awards_players (
"yearID" BIGINT,
"lgID" TEXT,
tie TEXT,
notes TEXT
notes TEXT,
search TSVECTOR GENERATED ALWAYS AS (
setweight(to_tsvector('simple', notes), 'A')::TSVECTOR
) STORED,
simvec VECTOR GENERATED always AS ('[1,2,3]'::VECTOR) STORED
);

DROP TABLE IF EXISTS functional_alltypes CASCADE;
Expand Down Expand Up @@ -209,13 +213,3 @@ CREATE TABLE map (kv HSTORE);
INSERT INTO map VALUES
('a=>1,b=>2,c=>3'),
('d=>4,e=>5,c=>6');

ALTER TABLE awards_players
ADD search tsvector
GENERATED always AS (
setweight(to_tsvector('simple', notes), 'A') :: tsvector
) stored;

ALTER TABLE awards_players
ADD simvec vector
GENERATED always AS ('[1,2,3]' :: vector) stored;
3 changes: 2 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ mysql = ["sqlalchemy", "pymysql", "sqlalchemy-views"]
pandas = ["regex"]
polars = ["polars", "pyarrow"]
postgres = ["psycopg2", "sqlalchemy", "sqlalchemy-views"]
pyarrow = ["pyarrow"]
pyspark = ["pyarrow", "pyspark", "sqlalchemy"]
snowflake = [
"snowflake-connector-python",
Expand Down

0 comments on commit 2f63ce1

Please sign in to comment.