Skip to content

[SPARK-56672][SQL] Rename TableViewCatalog.listRelationSummaries to listTableAndViewSummaries#55616

Closed
gengliangwang wants to merge 1 commit intoapache:masterfrom
gengliangwang:SPARK-56672
Closed

[SPARK-56672][SQL] Rename TableViewCatalog.listRelationSummaries to listTableAndViewSummaries#55616
gengliangwang wants to merge 1 commit intoapache:masterfrom
gengliangwang:SPARK-56672

Conversation

@gengliangwang
Copy link
Copy Markdown
Member

@gengliangwang gengliangwang commented Apr 30, 2026

What changes were proposed in this pull request?

Rename the unified listing method on TableViewCatalog from listRelationSummaries to listTableAndViewSummaries. Updates the declaration in TableViewCatalog.java and the two existing references introduced by SPARK-56655:

  • sql/catalyst/.../TableViewCatalog.java -- method declaration + javadoc
  • sql/core/.../ShowTablesExec.scala -- call site + scaladoc reference
  • sql/core/.../DataSourceV2MetadataViewSuite.scala -- comment reference

Why are the changes needed?

The new name explicitly states what the method returns (tables and views) and avoids overloading Spark's existing "Relation" terminology (BaseRelation, LogicalRelation, etc.), matching the rename rationale that already changed RelationCatalog -> TableViewCatalog in SPARK-56655. The API is still @Evolving and unreleased, so this is a pre-release rename with no deprecation cycle needed.

Does this PR introduce any user-facing change?

No end-user behavior change.

How was this patch tested?

Pure rename; existing tests in DataSourceV2MetadataViewSuite exercise the renamed method via SHOW TABLES on a TableViewCatalog.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude (Anthropic), claude-opus-4

…istTableAndViewSummaries

Rename the unified listing method on `TableViewCatalog` to make its scope
explicit -- it returns both tables and views -- and to avoid overloading
Spark's "Relation" terminology. Updates the declaration and its two
existing call sites/comments.
@gengliangwang
Copy link
Copy Markdown
Member Author

This is a follow-up of #55593. cc @cloud-fan @viirya for review.

@gengliangwang
Copy link
Copy Markdown
Member Author

@HyukjinKwon @viirya thanks for the review. Merging to master

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