[SPARK-15935][PYSPARK] Fix a wrong format tag in the error message

## What changes were proposed in this pull request?

A follow up PR for #13655 to fix a wrong format tag.

## How was this patch tested?

Jenkins unit tests.

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #13665 from zsxwing/fix.
This commit is contained in:
Shixiong Zhu 2016-06-14 19:45:11 -07:00
parent 63e0aebe22
commit 0ee9fd9e52
2 changed files with 2 additions and 2 deletions

View file

@ -335,7 +335,7 @@ def build_spark_maven(hadoop_version):
def build_spark_sbt(hadoop_version): def build_spark_sbt(hadoop_version):
# Enable all of the profiles for the build: # Enable all of the profiles for the build:
build_profiles = get_hadoop_profiles(hadoop_version) + modules.root.build_profile_flags build_profiles = get_hadoop_profiles(hadoop_version) + modules.root.build_profile_flags
sbt_goals = ["package", sbt_goals = ["test:package", # Build test jars as some tests depend on them
"streaming-kafka-0-8-assembly/assembly", "streaming-kafka-0-8-assembly/assembly",
"streaming-flume-assembly/assembly", "streaming-flume-assembly/assembly",
"streaming-kinesis-asl-assembly/assembly"] "streaming-kinesis-asl-assembly/assembly"]

View file

@ -146,7 +146,7 @@ class ContinuousQueryManager(object):
>>> cq.stop() >>> cq.stop()
""" """
if not isinstance(id, intlike): if not isinstance(id, intlike):
raise ValueError("The id for the query must be an integer. Got: %d" % id) raise ValueError("The id for the query must be an integer. Got: %s" % id)
return ContinuousQuery(self._jcqm.get(id)) return ContinuousQuery(self._jcqm.get(id))
@since(2.0) @since(2.0)