Skip to content

Conversation

@amol-
Copy link
Member

@amol- amol- commented Aug 18, 2021

No description provided.

@github-actions
Copy link

batches = [b for b in reader]
with pa.ipc.open_stream(buf) as reader:
schema = reader.schema
batches = [b for b in reader]
Copy link
Member Author

@amol- amol- Aug 18, 2021

Choose a reason for hiding this comment

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

Took me a while to get around this one, if you wonder why this block is indented to more spaces than the other blocks, it's to work around what seemed like a bug in ipython directive.
When indented normally the second line was parsed as outside of the with block

In [0]: with pa.ipc.open_stream(buf) as reader:
   ...:    schema = reader.schema
In [1]: batches = [b for b in reader]

instead of

In [0]: with pa.ipc.open_stream(buf) as reader:
   ...:       schema = reader.schema
   ...:       batches = [b for b in reader]

Copy link
Member

Choose a reason for hiding this comment

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

Uh.

@amol- amol- marked this pull request as ready for review August 18, 2021 12:55
Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

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

+1, thank you

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