Skip to content

Commit

Permalink
fix regex (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
nancyhung authored Jan 17, 2024
1 parent b40b805 commit f43d1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/data_prep/convert_delta_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def validate_and_get_cluster_info(cluster_id: str,
stripped_runtime = re.sub(
r'[a-zA-Z]', '',
res.spark_version.split('-scala')[0].replace('x-snapshot', ''))
runtime_version = re.sub(r'.-+$', '', stripped_runtime)
runtime_version = re.sub(r'[.-]*$', '', stripped_runtime)
if version.parse(runtime_version) < version.parse(
MINIMUM_SQ_CONNECT_DBR_VERSION):
raise ValueError(
Expand Down

0 comments on commit f43d1cf

Please sign in to comment.