Skip to content

Commit

Permalink
[SPARK-22566][PYTHON] Remove unnecessary copying of names list
Browse files Browse the repository at this point in the history
  • Loading branch information
gberger-palantir committed Dec 14, 2017
1 parent 404fdbb commit 6d171dd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion python/pyspark/sql/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,6 @@ def _infer_schema(row, names=None):
if names is None:
names = ['_%d' % i for i in range(1, len(row) + 1)]
elif len(names) < len(row):
names = names[:]
names.extend('_%d' % i for i in range(len(names) + 1, len(row) + 1))
items = zip(names, row)

Expand Down

0 comments on commit 6d171dd

Please sign in to comment.