Skip to content

Commit a7e6f84

Browse files
committed
fix
1 parent 7fbd13b commit a7e6f84

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sdks/python/apache_beam/io/gcp/bigquery_file_loads.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ def _bq_uuid(seed=None):
172172

173173

174174
def _bq_uuid_list(list):
175-
checksum = hashlib.sha256()
175+
cs = hashlib.sha256()
176176
for item in list:
177-
checksum.update(item.encode('utf-8'))
177+
cs.update(bigquery_tools.get_hashable_destination(item).encode('utf-8'))
178178
# separator
179-
checksum.update(b'\x00')
180-
return checksum.hexdigest()
179+
cs.update(b'\x00')
180+
return cs.hexdigest()
181181

182182

183183
class _ShardDestinations(beam.DoFn):

0 commit comments

Comments
 (0)