Repository: spark
Updated Branches:
  refs/heads/master 486f99eef -> a89cdf55f


[SQL][MINOR] XPathDouble prettyPrint should say 'double' not 'float'

## What changes were proposed in this pull request?

It looks like this was incorrectly copied from `XPathFloat` in the class above.

## How was this patch tested?

(Please explain how this patch was tested. E.g. unit tests, integration tests, 
manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)

Please review http://spark.apache.org/contributing.html before opening a pull 
request.

Author: Eric Liang <ekhli...@gmail.com>

Closes #20730 from ericl/fix-typo-xpath.


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

Branch: refs/heads/master
Commit: a89cdf55fa76fa23a524f0443e323498c3cc8664
Parents: 486f99e
Author: Eric Liang <ekhli...@gmail.com>
Authored: Mon Mar 5 07:32:24 2018 +0900
Committer: hyukjinkwon <gurwls...@gmail.com>
Committed: Mon Mar 5 07:32:24 2018 +0900

----------------------------------------------------------------------
 .../org/apache/spark/sql/catalyst/expressions/xml/xpath.scala      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/a89cdf55/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/xml/xpath.scala
----------------------------------------------------------------------
diff --git 
a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/xml/xpath.scala
 
b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/xml/xpath.scala
index d018556..aacf1a4 100644
--- 
a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/xml/xpath.scala
+++ 
b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/xml/xpath.scala
@@ -160,7 +160,7 @@ case class XPathFloat(xml: Expression, path: Expression) 
extends XPathExtract {
   """)
 // scalastyle:on line.size.limit
 case class XPathDouble(xml: Expression, path: Expression) extends XPathExtract 
{
-  override def prettyName: String = "xpath_float"
+  override def prettyName: String = "xpath_double"
   override def dataType: DataType = DoubleType
 
   override def nullSafeEval(xml: Any, path: Any): Any = {


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

Reply via email to