You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2019/03/26 11:56:21 UTC

[spark] branch master updated: [SPARK-26103][SQL][FOLLOW-UP] Use string-interpolation to show the config key.

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

gurwls223 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 529a061  [SPARK-26103][SQL][FOLLOW-UP] Use string-interpolation to show the config key.
529a061 is described below

commit 529a06116886ad655f44aa6205e60f3500ddd084
Author: Takuya UESHIN <ue...@databricks.com>
AuthorDate: Tue Mar 26 20:56:00 2019 +0900

    [SPARK-26103][SQL][FOLLOW-UP] Use string-interpolation to show the config key.
    
    ## What changes were proposed in this pull request?
    
    This is a follow-up of #23169.
    We should've used string-interpolation to show the config key in the warn message.
    
    ## How was this patch tested?
    
    Existing tests.
    
    Closes #24217 from ueshin/issues/SPARK-26103/s.
    
    Authored-by: Takuya UESHIN <ue...@databricks.com>
    Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
 .../src/main/scala/org/apache/spark/sql/catalyst/util/StringUtils.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/StringUtils.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/StringUtils.scala
index 6118d8c..6510bac 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/StringUtils.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/StringUtils.scala
@@ -144,7 +144,7 @@ object StringUtils extends Logging {
         logWarning(
           "Truncated the string representation of a plan since it was too long. The " +
             s"plan had length ${length} and the maximum is ${maxLength}. This behavior " +
-            "can be adjusted by setting '${SQLConf.MAX_PLAN_STRING_LENGTH.key}'.")
+            s"can be adjusted by setting '${SQLConf.MAX_PLAN_STRING_LENGTH.key}'.")
         val truncateMsg = if (maxLength == 0) {
           s"Truncated plan of $length characters"
         } else {


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