Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit deafa3e

Browse files
authored
Merge pull request #96 from ibis-project/sync-v1
chore: sync main with v1 branch
2 parents 86594aa + 7737be0 commit deafa3e

File tree

10 files changed

+377
-108
lines changed

10 files changed

+377
-108
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ jobs:
5858
include:
5959
- python_version: "3.7"
6060
"ibis_version": "1.2.0"
61-
- python_version: "3.7"
62-
"ibis_version": "1.3.0"
6361
- python_version: "3.8"
62+
"ibis_version": "1.3.0"
63+
- python_version: "3.9"
6464
"ibis_version": "1.4.0"
65+
- python_version: "3.10"
66+
"ibis_version": "2.0.0"
6567

6668
steps:
6769

.github/workflows/system-tests-pr.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python_version: ["3.7", "3.8", "3.9"]
20+
python_version: ["3.7", "3.10"]
2121
ibis_version: ["github"]
22-
include:
2322
- python_version: "3.7"
2423
"ibis_version": "1.2.0"
25-
- python_version: "3.7"
26-
"ibis_version": "1.3.0"
2724
- python_version: "3.8"
25+
"ibis_version": "1.3.0"
26+
- python_version: "3.9"
2827
"ibis_version": "1.4.0"
28+
- python_version: "3.10"
29+
"ibis_version": "2.0.0"
2930

3031
steps:
3132
- name: checkout
@@ -55,7 +56,7 @@ jobs:
5556
GCLOUD_KEY_PASSPHRASE: ${{ secrets.GCLOUD_KEY_PASSPHRASE }}
5657

5758
- name: run tests
58-
run: GOOGLE_BIGQUERY_PROJECT_ID="ibis-gbq" GOOGLE_APPLICATION_CREDENTIALS="$HOME/secrets/gcloud-service-key.json" python -m pytest tests/system
59+
run: GOOGLE_BIGQUERY_PROJECT_ID="ibis-gbq" GOOGLE_APPLICATION_CREDENTIALS="$HOME/secrets/gcloud-service-key.json" python -m pytest tests/system --save-dataset
5960

6061
# Remove the label so that it can be added again to re-trigger a build
6162
- name: reset label

.github/workflows/system-tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python_version: ["3.7", "3.8", "3.9"]
18+
python_version: ["3.7", "3.10"]
1919
ibis_version: ["github"]
20-
include:
2120
- python_version: "3.7"
2221
"ibis_version": "1.2.0"
23-
- python_version: "3.7"
24-
"ibis_version": "1.3.0"
2522
- python_version: "3.8"
23+
"ibis_version": "1.3.0"
24+
- python_version: "3.9"
2625
"ibis_version": "1.4.0"
26+
- python_version: "3.10"
27+
"ibis_version": "2.0.0"
2728

2829
steps:
2930
- name: checkout
@@ -51,4 +52,4 @@ jobs:
5152
GCLOUD_KEY_PASSPHRASE: ${{ secrets.GCLOUD_KEY_PASSPHRASE }}
5253

5354
- name: run tests
54-
run: GOOGLE_BIGQUERY_PROJECT_ID="ibis-gbq" GOOGLE_APPLICATION_CREDENTIALS="$HOME/secrets/gcloud-service-key.json" python -m pytest tests/system
55+
run: GOOGLE_BIGQUERY_PROJECT_ID="ibis-gbq" GOOGLE_APPLICATION_CREDENTIALS="$HOME/secrets/gcloud-service-key.json" python -m pytest tests/system --save-dataset

environment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: ibis-bigquery-dev
1+
name: ibis-v1-bigquery-dev
22
channels:
33
- conda-forge
44
dependencies:
55

66
# core
7-
- ibis-framework # TODO: require Ibis 2.0 when it's released
8-
- cached_property # New in Ibis 2.0 https://github.com/ibis-project/ibis/pull/2805
7+
- ibis-framework <=2.0.0dev
98
- google-cloud-bigquery-core >=1.12.0,<3.0.0dev
109
- pydata-google-auth
10+
- sqlalchemy=1.3.23
1111

1212
# dev
1313
- black=19.10b0 # Same as ibis

ibis_bigquery/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def _string_substring(translator, expr):
291291
raise ValueError("Length parameter should not be a negative value.")
292292

293293
base_substring = operation_registry[ops.Substring]
294-
base_substring(translator, expr)
294+
return base_substring(translator, expr)
295295

296296

297297
def _array_literal_format(expr):

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
packages=setuptools.find_packages(),
4242
python_requires=">=3.7",
4343
install_requires=[
44-
# TODO require ibis 2.0 when it's released
45-
"ibis-framework >= 1.2.0,<3.0.0dev",
44+
"ibis-framework >=1.2.0,<3.0.0dev",
4645
"google-cloud-bigquery >=1.12.0,<3.0.0dev",
4746
"google-cloud-bigquery-storage >=1.0.0,<3.0.0dev",
4847
"pyarrow >=1.0.0,<5.0.0dev",

0 commit comments

Comments
 (0)