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

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


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

commit ff9339d298d3d8ca54e5b5fa8accd1c52243f85d
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 c9ee60e..523bb3f 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
@@ -300,7 +300,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" +
@@ -1728,7 +1728,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