Skip to content

Commit b062f8b

Browse files
committed
revise
1 parent 1c5c3bf commit b062f8b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2475,8 +2475,9 @@ object SQLConf {
24752475
val LEGACY_PARSE_NULL_PARTITION_SPEC_AS_STRING_LITERAL =
24762476
buildConf("spark.sql.legacy.parseNullPartitionSpecAsStringLiteral")
24772477
.internal()
2478-
.doc("If it is set to true, Spark SQL parses the word `NULL` as the string literal 'NULL' " +
2479-
"in a partition specification, instead of a null partition value.")
2478+
.doc("If it is set to true, a null partition value is parsed as a string literal of its " +
2479+
"text representation, e.g., string 'null'. Otherwise, null partition values are parsed " +
2480+
"as they are.")
24802481
.version("3.2.0")
24812482
.booleanConf
24822483
.createWithDefault(false)

sql/core/src/test/scala/org/apache/spark/sql/execution/command/v1/ShowPartitionsSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ trait ShowPartitionsSuiteBase extends command.ShowPartitionsSuiteBase {
8989
withTable(t) {
9090
sql(s"CREATE TABLE $t (col1 INT, p1 STRING) $defaultUsing PARTITIONED BY (p1)")
9191
sql(s"INSERT INTO TABLE $t PARTITION (p1 = null) SELECT 0")
92-
checkAnswer(sql(s"SHOW PARTITIONS $t"), Row("p1=__HIVE_DEFAULT_PARTITION__"))
92+
checkAnswer(sql(s"SHOW PARTITIONS $t"), Row("p1=null"))
9393
checkAnswer(sql(s"SHOW PARTITIONS $t PARTITION (p1 = null)"), Row("p1=null"))
9494
}
9595
}

0 commit comments

Comments
 (0)