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

Extract methods to add system table entries #18857

Merged

Conversation

Randgalt
Copy link
Member

@Randgalt Randgalt commented Aug 30, 2023

Description

  • Extract materializedViewForCatalog() method so it can be reused
  • Extract tableCommentForCatalog() so that it can be reused

Additional context and related issues

n/a

Release notes

(X) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

@cla-bot cla-bot bot added the cla-signed label Aug 30, 2023
@Randgalt Randgalt changed the title Make seom table definitions public Make some table definitions public Aug 30, 2023
@Randgalt Randgalt force-pushed the jordanz/make-some-system-tables-public branch from c4225d6 to e341668 Compare August 30, 2023 11:32
});

return displayTable.build().cursor();
}

public void addMaterializedViewForCatalog(Session session, InMemoryRecordSet.Builder displayTable, QualifiedTablePrefix tablePrefix)
Copy link
Member

Choose a reason for hiding this comment

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

Extraction helper methods for clarity makes total sense. But please leave those as private as they are not used externally.

return table.build().cursor();
}

public void addTableCommentForCatalog(Session session, Builder table, String catalog, QualifiedTablePrefix prefix)
Copy link
Member

Choose a reason for hiding this comment

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

private

Extract individual catalog MV retrieval into method for
clarity purposes
Extract individual catalog retrieval into method for
clarity purposes
@Randgalt Randgalt force-pushed the jordanz/make-some-system-tables-public branch from e341668 to 4fba3b2 Compare August 31, 2023 05:34
@losipiuk losipiuk merged commit 6ffcf5a into trinodb:master Aug 31, 2023
@hashhar hashhar changed the title Make some table definitions public Extract methods to add system table entries Aug 31, 2023
@github-actions github-actions bot added this to the 426 milestone Aug 31, 2023
@Randgalt Randgalt deleted the jordanz/make-some-system-tables-public branch September 1, 2023 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants