Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[minor] fix(dev): fix ValueError when parsing config file with multiple '=' in one line (#5713)

JUN91beb161078d
diff --git a/dev/docker/iceberg-rest-server/rewrite_config.py b/dev/docker/iceberg-rest-server/rewrite_config.py
index dce5479cf0..484839fd03 100755
--- a/dev/docker/iceberg-rest-server/rewrite_config.py
+++ b/dev/docker/iceberg-rest-server/rewrite_config.py
@@ -48,7 +48,7 @@ def parse_config_file(file_path):
for line in file:
stripped_line = line.strip()
if stripped_line and not stripped_line.startswith('#'):
- key, value = stripped_line.split('=')
+ key, value = stripped_line.split('=', 1)
key = key.strip()
value = value.strip()
config_map[key] = value