File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -201,9 +201,9 @@ abstract class Expression extends TreeNode[Expression] {
201201 * See [[Canonicalize ]] for more details.
202202 *
203203 * This method should be used (instead of `sameResult`) when comparing if 2 expressions are the
204- * same and one can replace the other (eg. in Optimizer/Analyzer rules when we want to replace
204+ * same and one can replace the other (eg. in Optimizer/Analyzer rules where we want to replace
205205 * equivalent expressions). It should not be used (and `sameResult` should be used instead) when
206- * comparing if 2 expressions produce the same output (in this case `semanticEquals` can be too
206+ * comparing if 2 expressions produce the same results (in this case `semanticEquals` can be too
207207 * strict).
208208 */
209209 def semanticEquals (other : Expression ): Boolean =
@@ -217,7 +217,7 @@ abstract class Expression extends TreeNode[Expression] {
217217 * is aliased).
218218 *
219219 * This method should be used (instead of `semanticEquals`) when checking if 2 expressions
220- * produce the same output (eg. as in the case we are interested to check if the ordering is the
220+ * produce the same results (eg. as in the case we are interested to check if the ordering is the
221221 * same). It should not be used (and `semanticEquals` should be used instead) when comparing if 2
222222 * expressions are the same and one can replace the other.
223223 */
You can’t perform that action at this time.
0 commit comments