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: introduce DefaultExtensionCatalog #217

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

vbarua
Copy link
Member

@vbarua vbarua commented Dec 26, 2023

contains static strings for default extensions

@vbarua
Copy link
Member Author

vbarua commented Dec 26, 2023

It's come up a number of times that we're copying the names of extensions in various places. This change adds a DefaultExtensionCatalog class whose sole purpose is to hold static strings of extension names for re-use.

contains static strings for default extensions
@vbarua vbarua force-pushed the vbarua/default-extension-catalog branch from b9c500e to 5bc2786 Compare December 26, 2023 18:19
Copy link
Contributor

@vibhatha vibhatha left a comment

Choose a reason for hiding this comment

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

This PR LGTM!

@@ -25,7 +26,8 @@ public class YamlRead {

public static void main(String[] args) throws Exception {
try {
System.out.println("Read: " + YamlRead.class.getResource("/functions_boolean.yaml"));
System.out.println(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: @vbarua just curious do we need a println here? Or should we have used logs?

Copy link
Member Author

Choose a reason for hiding this comment

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

This looks to be some old debugging code. Trying to run the main function throws a FileNotFoundException for me, so I'm not sure if it works anymore. I could be worth removing, but I think that would be better as it's own change.

@vbarua vbarua merged commit 35f9b62 into main Jan 3, 2024
8 checks passed
@vbarua vbarua deleted the vbarua/default-extension-catalog branch January 3, 2024 22:22
ajegou pushed a commit to ajegou/substrait-java that referenced this pull request Mar 29, 2024
contains static strings for default extensions
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