Skip to content

Commit

Permalink
drop the _df
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 committed Jan 11, 2023
1 parent cbaccbc commit 2b88ed6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/deltalake/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def __stringify_partition_values(
out.append((field, op, str_value))
return out

def get_add_actions_df(self, flatten: bool = False) -> pyarrow.RecordBatch:
def get_add_actions(self, flatten: bool = False) -> pyarrow.RecordBatch:
"""
Return a dataframe with all current add actions.
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_table_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def test_history_partitioned_table_metadata():
def test_add_actions_table(flatten: bool):
table_path = "../rust/tests/data/delta-0.8.0-partitioned"
dt = DeltaTable(table_path)
actions_df = dt.get_add_actions_df(flatten)
actions_df = dt.get_add_actions(flatten)
# RecordBatch doesn't have a sort_by method yet
actions_df = pa.Table.from_batches([actions_df]).sort_by("path").to_batches()[0]

Expand Down

0 comments on commit 2b88ed6

Please sign in to comment.