Skip to content

Commit

Permalink
Making Python style checker happy
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGekk committed Apr 12, 2018
1 parent a31b2e2 commit 6aa36d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3011,7 +3011,7 @@ def test_sort_with_nulls_order(self):

def test_json_sampling_ratio(self):
rdd = self.spark.sparkContext.range(0, 100, 1, 1) \
.map(lambda x: '{"a":0.1}' if x == 1 else '{"a":%s}'%str(x))
.map(lambda x: '{"a":0.1}' if x == 1 else '{"a":%s}' % str(x))
schema = self.spark.read.option('inferSchema', True) \
.option('samplingRatio', 0.5) \
.json(rdd).schema
Expand Down

0 comments on commit 6aa36d4

Please sign in to comment.