Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0947b9a

Browse files
authored
New Complex type test table + Github Action changes (#575)
* Added new table* Some more fixes
1 parenteaa542d commit0947b9a

File tree

3 files changed

+11
-23
lines changed

3 files changed

+11
-23
lines changed

‎.github/workflows/code-quality-checks.yml‎

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
name:Code Quality Checks
2-
on:
3-
push:
4-
branches:
5-
-main
6-
-sea-migration
7-
-telemetry
8-
pull_request:
9-
branches:
10-
-main
11-
-sea-migration
12-
-telemetry
2+
3+
on:[pull_request]
4+
135
jobs:
146
run-unit-tests:
157
runs-on:ubuntu-latest

‎.github/workflows/integration.yml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
name:Integration Tests
2+
23
on:
3-
push:
4-
paths-ignore:
5-
-"**.MD"
6-
-"**.md"
7-
pull_request:
4+
push:
85
branches:
96
-main
10-
-sea-migration
11-
-telemetry
7+
pull_request:
128

139
jobs:
1410
run-e2e-tests:

‎tests/e2e/test_complex_types.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def table_fixture(self, connection_details):
1414
# Create the table
1515
cursor.execute(
1616
"""
17-
CREATE TABLE IF NOT EXISTSpysql_test_complex_types_table (
17+
CREATE TABLE IF NOT EXISTSpysql_e2e_test_complex_types_table (
1818
array_col ARRAY<STRING>,
1919
map_col MAP<STRING, INTEGER>,
2020
struct_col STRUCT<field1: STRING, field2: INTEGER>
@@ -24,7 +24,7 @@ def table_fixture(self, connection_details):
2424
# Insert a record
2525
cursor.execute(
2626
"""
27-
INSERT INTOpysql_test_complex_types_table
27+
INSERT INTOpysql_e2e_test_complex_types_table
2828
VALUES (
2929
ARRAY('a', 'b', 'c'),
3030
MAP('a', 1, 'b', 2, 'c', 3),
@@ -34,7 +34,7 @@ def table_fixture(self, connection_details):
3434
)
3535
yield
3636
# Clean up the table after the test
37-
cursor.execute("DROP TABLE IF EXISTSpysql_test_complex_types_table")
37+
cursor.execute("DROP TABLE IF EXISTSpysql_e2e_test_complex_types_table")
3838

3939
@pytest.mark.parametrize(
4040
"field,expected_type",
@@ -45,7 +45,7 @@ def test_read_complex_types_as_arrow(self, field, expected_type, table_fixture):
4545

4646
withself.cursor()ascursor:
4747
result=cursor.execute(
48-
"SELECT * FROMpysql_test_complex_types_table LIMIT 1"
48+
"SELECT * FROMpysql_e2e_test_complex_types_table LIMIT 1"
4949
).fetchone()
5050

5151
assertisinstance(result[field],expected_type)
@@ -57,7 +57,7 @@ def test_read_complex_types_as_string(self, field, table_fixture):
5757
extra_params={"_use_arrow_native_complex_types":False}
5858
)ascursor:
5959
result=cursor.execute(
60-
"SELECT * FROMpysql_test_complex_types_table LIMIT 1"
60+
"SELECT * FROMpysql_e2e_test_complex_types_table LIMIT 1"
6161
).fetchone()
6262

6363
assertisinstance(result[field],str)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp