This is an automated email from the ASF dual-hosted git repository.

srowen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new c7ae0657f93 [MINOR][SQL][YARN] Fix a typo: less then -> less than
c7ae0657f93 is described below

commit c7ae0657f93639dfe1b2996d94f5cabd16adc65d
Author: Yuming Wang <yumw...@ebay.com>
AuthorDate: Wed Jan 11 11:20:33 2023 -0600

    [MINOR][SQL][YARN] Fix a typo: less then -> less than
    
    ### What changes were proposed in this pull request?
    
    Fix a typo: less then -> less than.
    
    ### Why are the changes needed?
    
    Fix typo.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    N/A.
    
    Closes #39513 from wangyum/typo.
    
    Authored-by: Yuming Wang <yumw...@ebay.com>
    Signed-off-by: Sean Owen <sro...@gmail.com>
---
 .../src/main/scala/org/apache/spark/deploy/yarn/YarnAllocator.scala   | 2 +-
 .../main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala  | 4 ++--
 .../org/apache/spark/sql/execution/BaseScriptTransformationExec.scala | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnAllocator.scala
 
b/resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnAllocator.scala
index da4dd0cbb6b..313b19f919d 100644
--- 
a/resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnAllocator.scala
+++ 
b/resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/YarnAllocator.scala
@@ -705,7 +705,7 @@ private[yarn] class YarnAllocator(
       containersToUse: ArrayBuffer[Container],
       remaining: ArrayBuffer[Container]): Unit = {
     // Match on the exact resource we requested so there shouldn't be a 
mismatch,
-    // we are relying on YARN to return a container with resources no less 
then we requested.
+    // we are relying on YARN to return a container with resources no less 
than we requested.
     // If we change this, or starting validating the container, be sure the 
logic covers SPARK-6050.
     val rpId = getResourceProfileIdFromPriority(allocatedContainer.getPriority)
     val resourceForRP = rpIdToYarnResource.get(rpId)
diff --git 
a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
 
b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
index 960d7b4599b..eb85aee25ce 100644
--- 
a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
+++ 
b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
@@ -1707,9 +1707,9 @@ class AstBuilder extends SqlBaseParserBaseVisitor[AnyRef] 
with SQLConfHelper wit
    * - Null-safe Equal: '<=>'
    * - Not Equal: '<>' or '!='
    * - Less than: '<'
-   * - Less then or Equal: '<='
+   * - Less than or Equal: '<='
    * - Greater than: '>'
-   * - Greater then or Equal: '>='
+   * - Greater than or Equal: '>='
    */
   override def visitComparison(ctx: ComparisonContext): Expression = 
withOrigin(ctx) {
     val left = expression(ctx.left)
diff --git 
a/sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
 
b/sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
index bfc2bc7cd11..99d59901d58 100644
--- 
a/sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
+++ 
b/sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
@@ -123,8 +123,8 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
               .map { case (data, writer) => writer(data) })
       } else {
         // In schema less mode, hive will choose first two output column as 
output.
-        // If output column size less then 2, it will return NULL for columns 
with missing values.
-        // Here we split row string and choose first 2 values, if values's 
size less then 2,
+        // If output column size less than 2, it will return NULL for columns 
with missing values.
+        // Here we split row string and choose first 2 values, if values's 
size less than 2,
         // we pad NULL value until 2 to make behavior same with hive.
         val kvWriter = 
CatalystTypeConverters.createToCatalystConverter(StringType)
         prevLine: String =>


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

Reply via email to