Skip to content
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

Improve DV path canonicalization #1836

Closed
wants to merge 2 commits into from
Closed

Conversation

xupefei
Copy link
Contributor

@xupefei xupefei commented Jun 13, 2023

Description

This PR improves the FILE_PATH canonicalization logic by avoiding calling expensive Path.toUri.toString calls for each row in a table. Canonicalized paths are now cached and the UDF just needs to look it up.

Future improvement is possible for handling huge logs: build canonicalizedPathMap in a distributed way.

Related PR target the 2.4 branch: #1829.

How was this patch tested?

Existing tests.

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.

2 participants