Skip to content

Commit

Permalink
Make example debuggable
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Oct 29, 2024
1 parent bb4664c commit 4db29f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/source/python/recipe/postgresql_get_table_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@
#:
#: Note that the NUMERIC column is read as a string, because PostgreSQL
#: decimals do not map onto Arrow decimals.
assert conn.adbc_get_table_schema(
table_schema = conn.adbc_get_table_schema(
"example",
db_schema_filter="other_schema",
) == pyarrow.schema(
)
expected = pyarrow.schema(
[
("strings", "string"),
("values", "string"),
]
)
assert table_schema == expected, f"Unexpected table schema {table_schema}"

conn.close()

0 comments on commit 4db29f7

Please sign in to comment.