Skip to content

[query] Fix copy_log when log path is relative. #13340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

chrisvittal
Copy link
Collaborator

the local_path_uri function simply prepends 'file://' to the path provided. This leads to an odd situation were a relative path is transformed into 'file://relative/path/to/log', which parses as:

SCHEME: file
HOST : relative
PATH : path/to/log

To fix this, compute the real path of the log file and use that as the path for the local_path_uri

the local_path_uri function simply prepends 'file://' to the path
provided. This leads to an odd situation were a relative path is
transformed into 'file://relative/path/to/log', which parses as:

SCHEME: file
HOST  : relative
PATH  : path/to/log

To fix this, compute the real path of the log file and use that as the
path for the local_path_uri
@danking danking merged commit 3fb7e05 into hail-is:main Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants