You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix StaticTable._metadata_location_from_version_hint metadata location format ERROR (#2609)
<!--
Thanks for opening a pull request!
-->
<!-- In the case this PR will resolve an issue, please replace
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
# Rationale for this change
To fix StaticTable._metadata_location_from_version_hint metadata
location format ERROR:
```python
if content.endswith(".metadata.json"):
return os.path.join(metadata_location, "metadata", content)
elif content.isnumeric():
return os.path.join(metadata_location, "metadata", "v%s.metadata.json").format(content)
else:
return os.path.join(metadata_location, "metadata", "%s.metadata.json").format(content)
```
Closes#2608
## Are these changes tested?
Yes.
Added 2 more cases with numeric and non numeric metadata version hints.
## Are there any user-facing changes?
No
<!-- In the case of user-facing changes, please add the changelog label.
-->
0 commit comments