Skip to content

Commit 0dc49ff

Browse files
jprakash-dbsaishreeeee
authored andcommitted
New Complex type test table + Github Action changes (#575)
* Added new table * Some more fixes Signed-off-by: Sai Shree Pradhan <[email protected]>
1 parent b5d8c2b commit 0dc49ff

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 EXISTS pysql_test_complex_types_table (
17+
CREATE TABLE IF NOT EXISTS pysql_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 INTO pysql_test_complex_types_table
27+
INSERT INTO pysql_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 EXISTS pysql_test_complex_types_table")
37+
cursor.execute("DROP TABLE IF EXISTS pysql_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
with self.cursor() as cursor:
4747
result = cursor.execute(
48-
"SELECT * FROM pysql_test_complex_types_table LIMIT 1"
48+
"SELECT * FROM pysql_e2e_test_complex_types_table LIMIT 1"
4949
).fetchone()
5050

5151
assert isinstance(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
) as cursor:
5959
result = cursor.execute(
60-
"SELECT * FROM pysql_test_complex_types_table LIMIT 1"
60+
"SELECT * FROM pysql_e2e_test_complex_types_table LIMIT 1"
6161
).fetchone()
6262

6363
assert isinstance(result[field], str)

0 commit comments

Comments
 (0)