Skip to content

Conversation

@yingcai-cy
Copy link
Contributor

@yingcai-cy yingcai-cy commented May 6, 2025

introduce a new config class to manage configurable options following design ideas from Velox

@wgtmac
Copy link
Member

wgtmac commented May 9, 2025

What about renaming the title to feat: add base config implementation? We can mention Velox as a comment to the config class.

@yingcai-cy yingcai-cy changed the title introduce a new config class to manage configurable options following design ideas from Velox feat: add base config implementation May 9, 2025

enum class TestEnum { VALUE1, VALUE2, VALUE3 };

std::string enumToString(const TestEnum& val) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
std::string enumToString(const TestEnum& val) {
std::string EnumToString(const TestEnum& val) {

nit

}
}

TestEnum stringToEnum(const std::string& val) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
TestEnum stringToEnum(const std::string& val) {
TestEnum StringToEnum(const std::string& val) {

nit

template <typename T>
using Entry = const ConfigBase<TestConfig>::Entry<T>;

inline static const Entry<std::string> STRING_CONFIG{"string_config", "default_value"};
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: maybe we should follow the k-prefix pattern for static const variables.

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

Looks good @yingcai-cy Thanks for working on this. Thanks @wgtmac, @lidavidm and @zhjwpku for the review 🙌

@Fokko Fokko merged commit 408e1a4 into apache:main May 12, 2025
6 checks passed
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.

5 participants