Skip to content

Conversation

@turtleDev
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 12, 2025 15:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds an early return for empty Arrow tables to prevent unnecessary filtering operations. The change prevents potential errors or inefficient operations when attempting to filter against an empty dataset.

  • Added empty table check after reading the Arrow file
  • Returns an empty list immediately when the table has no records

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

with pa.memory_map(path, "rb") as mmap:
reader: ipc.RecordBatchFileReader = ipc.open_file(mmap)
table = reader.read_all()

Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

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

Trailing whitespace detected. Remove the extra spaces at the end of this line.

Suggested change

Copilot uses AI. Check for mistakes.
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