Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: metadata columns #14057

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions datafusion/catalog/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ pub trait TableProvider: Debug + Sync + Send {
/// Get a reference to the schema for this table
fn schema(&self) -> SchemaRef;

/// Get metadata columns of this table.
fn metadata_columns(&self) -> Option<SchemaRef> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please document this better -- specifically:

  1. A link to the prior art (spark metadata columns)
  2. A brief summary of what metadata columns are used for and an example (you can copy the content from the spark docs)

None
}

/// Get a reference to the constraints of the table.
/// Returns:
/// - `None` for tables that do not support constraints.
Expand Down
Loading
Loading