Skip to content

Fix column rename doc example to reflect correct API#59

Merged
Fokko merged 1 commit intoapache:mainfrom
cabhishek:update_docs
Oct 12, 2023
Merged

Fix column rename doc example to reflect correct API#59
Fokko merged 1 commit intoapache:mainfrom
cabhishek:update_docs

Conversation

@cabhishek
Copy link
Copy Markdown
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
Copy Markdown
Contributor

rdblue commented Oct 11, 2023

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

Copy link
Copy Markdown
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