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

New Complex type test table + Github Action changes#575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jprakash-db merged 2 commits intomainfromjprakash-db/new-table-complex-types-test
May 28, 2025
Merged
Show file tree
Hide file tree
Changes fromall 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
14 changes: 3 additions & 11 deletions.github/workflows/code-quality-checks.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
name: Code Quality Checks
on:
push:
branches:
- main
- sea-migration
- telemetry
pull_request:
branches:
- main
- sea-migration
- telemetry

on: [pull_request]

jobs:
run-unit-tests:
runs-on: ubuntu-latest
Expand Down
10 changes: 3 additions & 7 deletions.github/workflows/integration.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
name: Integration Tests

on:
push:
paths-ignore:
- "**.MD"
- "**.md"
pull_request:
push:
branches:
- main
- sea-migration
- telemetry
pull_request:

jobs:
run-e2e-tests:
Expand Down
10 changes: 5 additions & 5 deletionstests/e2e/test_complex_types.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,7 +14,7 @@ def table_fixture(self, connection_details):
# Create the table
cursor.execute(
"""
CREATE TABLE IF NOT EXISTSpysql_test_complex_types_table (
CREATE TABLE IF NOT EXISTSpysql_e2e_test_complex_types_table (
array_col ARRAY<STRING>,
map_col MAP<STRING, INTEGER>,
struct_col STRUCT<field1: STRING, field2: INTEGER>
Expand All@@ -24,7 +24,7 @@ def table_fixture(self, connection_details):
# Insert a record
cursor.execute(
"""
INSERT INTOpysql_test_complex_types_table
INSERT INTOpysql_e2e_test_complex_types_table
VALUES (
ARRAY('a', 'b', 'c'),
MAP('a', 1, 'b', 2, 'c', 3),
Expand All@@ -34,7 +34,7 @@ def table_fixture(self, connection_details):
)
yield
# Clean up the table after the test
cursor.execute("DROP TABLE IF EXISTSpysql_test_complex_types_table")
cursor.execute("DROP TABLE IF EXISTSpysql_e2e_test_complex_types_table")

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

with self.cursor() as cursor:
result = cursor.execute(
"SELECT * FROMpysql_test_complex_types_table LIMIT 1"
"SELECT * FROMpysql_e2e_test_complex_types_table LIMIT 1"
).fetchone()

assert isinstance(result[field], expected_type)
Expand All@@ -57,7 +57,7 @@ def test_read_complex_types_as_string(self, field, table_fixture):
extra_params={"_use_arrow_native_complex_types": False}
) as cursor:
result = cursor.execute(
"SELECT * FROMpysql_test_complex_types_table LIMIT 1"
"SELECT * FROMpysql_e2e_test_complex_types_table LIMIT 1"
).fetchone()

assert isinstance(result[field], str)
Loading

[8]ページ先頭

©2009-2025 Movatter.jp