diff --git a/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala b/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala index 47cc40f40f9c2..dad36864b923e 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala @@ -294,7 +294,7 @@ class DataFrame protected[sql]( * // The following are equivalent: * peopleDf.filter($"age" > 15) * peopleDf.where($"age" > 15) - * peopleDf($"age > 15) + * peopleDf($"age" > 15) * }}} */ override def filter(condition: Column): DataFrame = { @@ -307,7 +307,7 @@ class DataFrame protected[sql]( * // The following are equivalent: * peopleDf.filter($"age" > 15) * peopleDf.where($"age" > 15) - * peopleDf($"age > 15) + * peopleDf($"age" > 15) * }}} */ override def where(condition: Column): DataFrame = filter(condition) @@ -318,7 +318,7 @@ class DataFrame protected[sql]( * // The following are equivalent: * peopleDf.filter($"age" > 15) * peopleDf.where($"age" > 15) - * peopleDf($"age > 15) + * peopleDf($"age" > 15) * }}} */ override def apply(condition: Column): DataFrame = filter(condition)