Skip to content

Commit

Permalink
refactor(pyarrow): remove comparison of column names for renaming (#9616
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cpcloud authored Jul 17, 2024
1 parent c098c70 commit 3b2a7ec
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ibis/formats/pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,6 @@ def convert_table(cls, table: pa.Table, schema: Schema) -> pa.Table:
desired_schema = PyArrowSchema.from_ibis(schema)
pa_schema = table.schema

if pa_schema.names != schema.names:
table = table.rename_columns(schema.names)

if pa_schema != desired_schema:
return table.cast(desired_schema, safe=False)
else:
Expand Down

0 comments on commit 3b2a7ec

Please sign in to comment.