Skip to content

Commit

Permalink
Use str for SparklyTest options (#52)
Browse files Browse the repository at this point in the history
* `spark.sql.shuffle.partitions` in `SparklyTest` should be set to string,
because `int` value breaks integration testing in Spark 2.0.2.
  • Loading branch information
drudim authored Aug 3, 2017
1 parent 3d2bdfa commit caa398c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.2.1
* `spark.sql.shuffle.partitions` in `SparklyTest` should be set to string,
because `int` value breaks integration testing in Spark 2.0.2.

# 2.2.0
* Add instant iterative development mode. `sparkly-testing --help` for more details.
* Use in-memory db for Hive Metastore in `SparklyTest` (faster tests).
Expand Down
2 changes: 1 addition & 1 deletion sparkly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
assert SparklySession


__version__ = '2.2.0'
__version__ = '2.2.1'
2 changes: 1 addition & 1 deletion sparkly/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def setup_session(cls):
'spark.sql.warehouse.dir': tempfile.mkdtemp(suffix='sparkly'),

# Reduce number of shuffle partitions (faster tests).
'spark.sql.shuffle.partitions': 4,
'spark.sql.shuffle.partitions': '4',
})

@classmethod
Expand Down

0 comments on commit caa398c

Please sign in to comment.