aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2016-12-06 11:48:11 -0800
committerHerman van Hovell <hvanhovell@databricks.com>2016-12-06 11:48:11 -0800
commitcb1f10b468e7771af75cb2288d375a87ab66d316 (patch)
tree2ab0ed2cb0157af151c8cdcda84b5f810585c784 /external
parent05d416ffc616930d05b59bce0ca6cbd682f8b5bc (diff)
downloadspark-cb1f10b468e7771af75cb2288d375a87ab66d316.tar.gz
spark-cb1f10b468e7771af75cb2288d375a87ab66d316.tar.bz2
spark-cb1f10b468e7771af75cb2288d375a87ab66d316.zip
[SPARK-18714][SQL] Add a simple time function to SparkSession
## What changes were proposed in this pull request? Many Spark developers often want to test the runtime of some function in interactive debugging and testing. This patch adds a simple time function to SparkSession: ``` scala> spark.time { spark.range(1000).count() } Time taken: 77 ms res1: Long = 1000 ``` ## How was this patch tested? I tested this interactively in spark-shell. Author: Reynold Xin <rxin@databricks.com> Closes #16140 from rxin/SPARK-18714.
Diffstat (limited to 'external')
0 files changed, 0 insertions, 0 deletions