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

dongjoon pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-2.3 by this push:
     new c04f796  [SPARK-28844][SQL] Fix typo in SQLConf FILE_COMRESSION_FACTOR
c04f796 is described below

commit c04f796509ea85b12262e191636919fb42db29fa
Author: triplesheep <triplesheep0...@gmail.com>
AuthorDate: Thu Aug 22 00:07:40 2019 -0700

    [SPARK-28844][SQL] Fix typo in SQLConf FILE_COMRESSION_FACTOR
    
    Fix minor typo in SQLConf.
    `FILE_COMRESSION_FACTOR` -> `FILE_COMPRESSION_FACTOR`
    
    Make conf more understandable.
    
    No. (`spark.sql.sources.fileCompressionFactor` is unchanged.)
    
    Pass the Jenkins with the existing tests.
    
    Closes #25538 from triplesheep/TYPO-FIX.
    
    Authored-by: triplesheep <triplesheep0...@gmail.com>
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
    (cherry picked from commit 48578a41b50308185c7eefd6e562bd0f6575a921)
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
---
 .../src/main/scala/org/apache/spark/sql/internal/SQLConf.scala        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala 
b/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
index c77c4f2..d22fe6e 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
@@ -267,7 +267,7 @@ object SQLConf {
     .booleanConf
     .createWithDefault(false)
 
-  val FILE_COMRESSION_FACTOR = 
buildConf("spark.sql.sources.fileCompressionFactor")
+  val FILE_COMPRESSION_FACTOR = 
buildConf("spark.sql.sources.fileCompressionFactor")
     .internal()
     .doc("When estimating the output data size of a table scan, multiply the 
file size with this " +
       "factor as the estimated data size, in case the data is compressed in 
the file and lead to" +
@@ -1350,7 +1350,7 @@ class SQLConf extends Serializable with Logging {
 
   def escapedStringLiterals: Boolean = getConf(ESCAPED_STRING_LITERALS)
 
-  def fileCompressionFactor: Double = getConf(FILE_COMRESSION_FACTOR)
+  def fileCompressionFactor: Double = getConf(FILE_COMPRESSION_FACTOR)
 
   def stringRedactionPattern: Option[Regex] = 
getConf(SQL_STRING_REDACTION_PATTERN)
 


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

Reply via email to