Skip to content

Conversation

@cabhishek
Copy link
Contributor

  • Rename column example in this doc is incorrect.
  • This PR updates the example to use update.rename_column(...) instead of update.rename(...).

After PR

with table.update_schema() as update:
    update.rename_column("retries", "num_retries")
    # This will rename `confirmed_by` to `exchange`
    update.rename_column("properties.confirmed_by", "exchange")

@rdblue
Copy link
Contributor

rdblue commented Oct 11, 2023

Thanks, @cabhishek! I'll merge when tests are green.

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.

Thanks @cabhishek for fixing this 🎉

@Fokko Fokko merged commit 0a584a4 into apache:main Oct 12, 2023
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.

3 participants