fix(catalog): URL-encode table full_name in TablesAPI#1277
Open
dotuananh0712 wants to merge 1 commit intodatabricks:mainfrom
Open
fix(catalog): URL-encode table full_name in TablesAPI#1277dotuananh0712 wants to merge 1 commit intodatabricks:mainfrom
dotuananh0712 wants to merge 1 commit intodatabricks:mainfrom
Conversation
Unity Catalog allows table names with special characters (e.g. '%') which must be URL-encoded in requests to the Databricks REST APIs. This fix applies _escape_multi_segment_path_parameter to the full_name parameter in TablesAPI.get(), delete(), exists(), and update() methods. Fixes databricks#1266
|
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Unity Catalog allows table names with special characters (e.g. '%') which must be URL-encoded in requests to the Databricks REST APIs. This fix applies
_escape_multi_segment_path_parameterto thefull_nameparameter inTablesAPI.get(),delete(),exists(), andupdate()methods.Changes
_escape_multi_segment_path_parameterimport to catalog.pyfull_namein:TablesAPI.delete()(line 16218)TablesAPI.exists()(line 16242)TablesAPI.get()(line 16287)TablesAPI.update()(line 16484)Fixes
Fixes #1266
This PR was contributed by an AI assistant (OpenCode).
NO_CHANGELOG=true