spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject spark git commit: Fixed typo
Date Wed, 10 Aug 2016 06:02:00 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-2.0 2d136dba4 -> 475ee3815


Fixed typo

## What changes were proposed in this pull request?

Fixed small typo - "value ... ~~in~~ is null"

## How was this patch tested?

Still compiles!

Author: Michał Kiełbowicz <jupblb@users.noreply.github.com>

Closes #14569 from jupblb/typo-fix.

(cherry picked from commit 9dc3e602d77ccdf670f1b6648e5674066d189cc0)
Signed-off-by: Reynold Xin <rxin@databricks.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/475ee381
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/475ee381
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/475ee381

Branch: refs/heads/branch-2.0
Commit: 475ee38150ee5a234156a903e4de227954b0063e
Parents: 2d136db
Author: Michał Kiełbowicz <jupblb@users.noreply.github.com>
Authored: Tue Aug 9 23:01:50 2016 -0700
Committer: Reynold Xin <rxin@databricks.com>
Committed: Tue Aug 9 23:01:57 2016 -0700

----------------------------------------------------------------------
 sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/475ee381/sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala
----------------------------------------------------------------------
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala
index d83eef7..e16850e 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala
@@ -463,6 +463,6 @@ trait Row extends Serializable {
    * @throws NullPointerException when value is null.
    */
   private def getAnyValAs[T <: AnyVal](i: Int): T =
-    if (isNullAt(i)) throw new NullPointerException(s"Value at index $i in null")
+    if (isNullAt(i)) throw new NullPointerException(s"Value at index $i is null")
     else getAs[T](i)
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message