Skip to content

Commit ac91a7d

Browse files
committed
[SPARK-50608][SQL][DOCS] Fix malformed configuration page caused by unclosed tags
### What changes were proposed in this pull request? Fix the malformed configuration page caused by unclosed tags ### Why are the changes needed? docfix ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? #### Before ![image](https://github.com/user-attachments/assets/d5fe7630-a26f-48cb-8bc3-9a93155eeef1) #### After ![image](https://github.com/user-attachments/assets/57bcbfdf-b5b5-43ba-ab60-89dc062f6016) ### Was this patch authored or co-authored using generative AI tooling? no Closes apache#49223 from yaooqinn/SPARK-50608. Authored-by: Kent Yao <[email protected]> Signed-off-by: Kent Yao <[email protected]>
1 parent 38c6ef4 commit ac91a7d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

sql/gen-sql-config-docs.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ def generate_sql_configs_table_html(sql_configs, path):
103103
)
104104
)
105105

106+
if config.name == "spark.sql.files.ignoreInvalidPartitionPaths":
107+
description = config.description.replace("<", "&lt;").replace(">", "&gt;")
108+
elif config.name == "spark.sql.hive.quoteHiveStructFieldName":
109+
description = config.description.replace(
110+
"<", "&lt;").replace(">", "&gt;").replace("`", "&#96;")
111+
else:
112+
description = config.description
113+
106114
f.write(dedent(
107115
"""
108116
<tr>
@@ -115,7 +123,7 @@ def generate_sql_configs_table_html(sql_configs, path):
115123
.format(
116124
name=config.name,
117125
default=default,
118-
description=markdown.markdown(config.description),
126+
description=markdown.markdown(description),
119127
version=config.version
120128
)
121129
))

0 commit comments

Comments
 (0)