Skip to content

Minor: Add Documentation and Examples to TableReference#5616

Merged
alamb merged 5 commits intoapache:mainfrom
alamb:alamb/table_ref_docs
Mar 17, 2023
Merged

Minor: Add Documentation and Examples to TableReference#5616
alamb merged 5 commits intoapache:mainfrom
alamb:alamb/table_ref_docs

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Mar 15, 2023

Which issue does this PR close?

Related to #5615

Rationale for this change

While working on #5615 I realized how complicated the TableReference has become so I felt more documentataion was in order

What changes are included in this PR?

Add Documentation and Examples to TableReference

Are these changes tested?

Yes, doc tests are tested

Are there any user-facing changes?

More docs

@alamb alamb marked this pull request as ready for review March 15, 2023 18:20
///
/// # Creating [`TableReference`]
///
/// When converting strings to [`TableReference`]s, the string is
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The SQL parsing behavior added in #5343 is somewhat surprising so I think it should be well documented

@alamb alamb added the documentation Improvements or additions to documentation label Mar 15, 2023
@alamb
Copy link
Contributor Author

alamb commented Mar 15, 2023

FYI @Jefffrey

Copy link
Contributor

@Jefffrey Jefffrey left a comment

Choose a reason for hiding this comment

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

thanks for this, docs look good, just a few minor suggestions for being a bit more explicit about details

}

/// Converts directly into an [`OwnedTableReference`]
/// Converts directly into an [`OwnedTableReference`] by copying
Copy link
Contributor

Choose a reason for hiding this comment

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

copying -> cloning maybe?

not sure how explicit need to be about cloning in documentation

@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Mar 15, 2023
@alamb alamb merged commit d058512 into apache:main Mar 17, 2023
@alamb alamb deleted the alamb/table_ref_docs branch July 26, 2024 10:46
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