-
Notifications
You must be signed in to change notification settings - Fork 400
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
[#4582] fix(hadoop-catalog): Fix some location without slash issue #5296
Conversation
@shaofengshi @xloya @yuqi1129 please help to review this PR. |
I think we should also add some checks when creating a catalog / schema with a location to force the user to input the correct location, WDYT? |
I think we can, previously, I postponed this to the fileset creation. Let me think a bit on this. Maybe we can have a simple fix here and do a thorough fix in the next version? |
LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…5296) ### What changes were proposed in this pull request? Add the trailing slash to avoid issues when user set illegal location to catalog and schema. For example, if user set "hdfs://ip:port" as a catalog or schema location, we need to add a trailing "/" to avoid issues in creating a `Path`. ### Why are the changes needed? Users can set Catalog and schema "location" with improper path, like "hdfs://ip:port", to support this case, we need to add an additional slash to the end of the location. Fix: #4582 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Add a new IT to test.
…sue (apache#5296) ### What changes were proposed in this pull request? Add the trailing slash to avoid issues when user set illegal location to catalog and schema. For example, if user set "hdfs://ip:port" as a catalog or schema location, we need to add a trailing "/" to avoid issues in creating a `Path`. ### Why are the changes needed? Users can set Catalog and schema "location" with improper path, like "hdfs://ip:port", to support this case, we need to add an additional slash to the end of the location. Fix: apache#4582 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Add a new IT to test.
What changes were proposed in this pull request?
Add the trailing slash to avoid issues when user set illegal location to catalog and schema. For example, if user set "hdfs://ip:port" as a catalog or schema location, we need to add a trailing "/" to avoid issues in creating a
Path
.Why are the changes needed?
Users can set Catalog and schema "location" with improper path, like "hdfs://ip:port", to support this case, we need to add an additional slash to the end of the location.
Fix: #4582
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Add a new IT to test.