Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test, write subset of schema #704

Merged
merged 2 commits into from
May 9, 2024

Conversation

kevinjqliu
Copy link
Contributor

arrow_table_without_some_columns = arrow_table_with_null.combine_chunks().drop(arrow_table_with_null.column_names[0])
assert len(arrow_table_without_some_columns.columns) < len(arrow_table_with_null.columns)
tbl.overwrite(arrow_table_without_some_columns)
tbl.append(arrow_table_without_some_columns)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test looks good. Just have one request: Shall we check the content of final table after overwrite and append?

@kevinjqliu kevinjqliu requested a review from HonahX May 9, 2024 16:18
Copy link
Contributor

@HonahX HonahX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! @kevinjqliu

@HonahX HonahX merged commit aa361d1 into apache:main May 9, 2024
7 checks passed
@kevinjqliu kevinjqliu deleted the kevinjqliu/write-subset-schema branch May 9, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants