Skip to content

ARROW-12769: [Python] Fix slicing array with "negative" length (start > stop)#10341

Closed
jorisvandenbossche wants to merge 1 commit intoapache:masterfrom
jorisvandenbossche:ARROW-12769
Closed

ARROW-12769: [Python] Fix slicing array with "negative" length (start > stop)#10341
jorisvandenbossche wants to merge 1 commit intoapache:masterfrom
jorisvandenbossche:ARROW-12769

Conversation

@jorisvandenbossche
Copy link
Copy Markdown
Member

When the normalized slice has a start > stop, we were creating invalid arrays with a negative length (which then errors on subsequent operations)

@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

LGTM. Travis looks like a flake.

@lidavidm lidavidm closed this in e4952e4 May 17, 2021
@jorisvandenbossche jorisvandenbossche deleted the ARROW-12769 branch May 17, 2021 14:13
kszucs pushed a commit to kszucs/arrow that referenced this pull request May 17, 2021
… > stop)

When the normalized slice has a start > stop, we were creating invalid arrays with a negative length (which then errors on subsequent operations)

Closes apache#10341 from jorisvandenbossche/ARROW-12769

Authored-by: Joris Van den Bossche <[email protected]>
Signed-off-by: David Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants