Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@drj42
Copy link
Contributor

@drj42 drj42 commented Jun 10, 2018

Description

This change fixes a bug that prevents BigQuery tasks from working as ranged tasks (RangeDaily, et. al.) in python 3.

Motivation and Context

RangeDaily tasks are broken for big query tasks in python3, because the big query bulk_complete method is invoked, with the return value of a call to map, as an argument. In python 3, map returns a generator, while in python 2 it returns a list.

The MixinBigQueryBulkComplete.bulk_complete method invokes len() on this argument, and so fails if that argument is a generator.

Have you tested this? If so, how?

Current unit tests pass for me.

@Tarrasch Tarrasch merged commit 1a4802d into spotify:master Jun 16, 2018
@Tarrasch
Copy link
Contributor

Nice. Thanks for the fix!

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