Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@kevinjqliu
Copy link
Contributor

@kevinjqliu kevinjqliu commented Mar 7, 2024

Resolves #502

This PR modifies the Transactions set_properties API to allow passing table properties either as dictionary or as kwargs
For example,

with table.transaction() as transaction: 
    transaction.set_properties(abc="def")
    transaction.set_properties({"abc": "def"}) 

set_properties only allows table properties to be passed in either via dictionary or kwarg, not both. This removes complexity when both are set.

Copy link
Contributor

@HonahX HonahX left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @kevinjqliu !

@HonahX HonahX merged commit ad40573 into apache:main Mar 8, 2024
@kevinjqliu kevinjqliu deleted the kevinjqliu/pass-properties-as-dict branch March 8, 2024 15:14
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.

[feature request] easier API to set table properties

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.