Skip to content

[core] Add file_name and clustering_columns fields to files system table#7667

Open
heye1005 wants to merge 1 commit intoapache:masterfrom
heye1005:add-clustering-to-files-table
Open

[core] Add file_name and clustering_columns fields to files system table#7667
heye1005 wants to merge 1 commit intoapache:masterfrom
heye1005:add-clustering-to-files-table

Conversation

@heye1005
Copy link
Copy Markdown

Purpose

Closes #7283.

Added file_name and clustering_columns to the $files system table.

  • file_name: just the file name, without the path prefix
  • clustering_columns: the clustering columns from table schema options, comma-separated. NULL if not configured.

the issue title says "clustering column and file name system table" — not sure if the intent was a standalone $clustering_columns table or just adding fields to an existing one. I went with adding them to $files since it's only two fields and didn't feel like it warranted a separate table. Happy to change if a standalone table is preferred.

Tests

  • Updated existing FilesTableTest expected results to include the new fields
  • Added testFileNameAndClusteringColumns: creates a table with clustering.columns set, verifies both fields
  • Added testClusteringColumnsNull: verifies the field is NULL when clustering is not configured

@heye1005 heye1005 force-pushed the add-clustering-to-files-table branch from 37cf0e4 to f066dcf Compare April 18, 2026 14:44
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] Add clustering column and file name system table

1 participant