Skip to content

Commit a89cdf5

Browse files
ericlHyukjinKwon
authored andcommitted
[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 <[email protected]> Closes #20730 from ericl/fix-typo-xpath.
1 parent 486f99e commit a89cdf5

File tree

1 file changed

+1
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/xml

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/xml/xpath.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ case class XPathFloat(xml: Expression, path: Expression) extends XPathExtract {
160160
""")
161161
// scalastyle:on line.size.limit
162162
case class XPathDouble(xml: Expression, path: Expression) extends XPathExtract {
163-
override def prettyName: String = "xpath_float"
163+
override def prettyName: String = "xpath_double"
164164
override def dataType: DataType = DoubleType
165165

166166
override def nullSafeEval(xml: Any, path: Any): Any = {

0 commit comments

Comments
 (0)