Skip to content

Conversation

jayceslesar
Copy link
Contributor

@jayceslesar jayceslesar commented Jun 12, 2025

Let requests handle dealing with params instead of using .format on a templated string.

@jayceslesar jayceslesar changed the title feat: support optional params in rest catalog maint: let requests handle params formatting Jun 13, 2025
@@ -14,6 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import re
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import re

Comment on lines 86 to 88
CAMEL_TO_SNAKE_CASE_PATTERN = re.compile(r"(?<!^)(?=[A-Z])")


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CAMEL_TO_SNAKE_CASE_PATTERN = re.compile(r"(?<!^)(?=[A-Z])")

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super close, I think we can clean up the regex as well 👍

@Fokko Fokko merged commit 131dd15 into apache:main Jun 14, 2025
14 of 18 checks passed
@Fokko
Copy link
Contributor

Fokko commented Jun 14, 2025

Thanks @jayceslesar 🙌

amitgilad3 pushed a commit to amitgilad3/iceberg-python that referenced this pull request Jul 7, 2025
gabeiglio pushed a commit to Netflix/iceberg-python that referenced this pull request Aug 13, 2025
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