Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Python 3.7
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.8

- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
- --remove-unused-variables

- repo: https://github.com/PyCQA/isort
rev: 5.9.3
rev: "5.12.0"
hooks:
- id: isort

Expand All @@ -39,7 +39,7 @@ repos:
- id: black_nbconvert

- repo: https://github.com/PyCQA/flake8
rev: 3.7.9
rev: "4.0.1"
hooks:
- id: flake8
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion src/firebolt/async_db/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ async def get_status(self, query_id: str) -> QueryStatus:
resp_json = resp.json()
if "status" not in resp_json:
raise OperationalError(
f"Invalid response to asynchronous query: missing status."
"Invalid response to asynchronous query: missing status."
)
except Exception:
self._state = CursorState.ERROR
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/dbapi/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ def all_types_query() -> str:
"'text' as \"string\", "
"CAST('2021-03-28' AS DATE) as \"date\", "
"CAST('1860-03-04' AS DATE_EXT) as \"date32\","
"pgdate '0001-01-01' as pgdate, "
"pgdate '0001-01-01' as \"pgdate\", "
"CAST('2019-07-31 01:01:01' AS DATETIME) as \"datetime\", "
"CAST('2019-07-31 01:01:01.1234' AS TIMESTAMP_EXT(4)) as \"datetime64\", "
"CAST('1111-01-05 17:04:42.123456' as timestampntz) as timestampntz, "
"'1111-01-05 17:04:42.123456'::timestamptz as timestamptz, "
"CAST('1111-01-05 17:04:42.123456' as timestampntz) as \"timestampntz\", "
"'1111-01-05 17:04:42.123456'::timestamptz as \"timestamptz\", "
'true as "boolean", '
"[1,2,3,4] as \"array\", cast('1231232.123459999990457054844258706536' as "
'decimal(38,30)) as "decimal", '
"cast(null as int) as nullable"
'cast(null as int) as "nullable"'
)


Expand Down
2 changes: 1 addition & 1 deletion tests/integration/dbapi/sync/test_system_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def db_specs(region, attached_engine):

@mark.parametrize(
"query",
["CREATE DIMENSION TABLE dummy(id INT)", "SHOW TABLES", "SHOW INDEXES"],
["CREATE DIMENSION TABLE dummy(id INT)"],
)
def test_query_errors(connection_system_engine, query):
with connection_system_engine.cursor() as cursor:
Expand Down