-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Generate default_types
from json files
#7646
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
Conversation
We might also be able to use this list for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Good idea - some comments:
src/include/duckdb/catalog/default/builtin_types/fixed_point.json
Outdated
Show resolved
Hide resolved
namespace duckdb { | ||
|
||
const case_insensitive_map_t<LogicalTypeId> &GetInternalTypes() { | ||
static const std::pair<std::string, LogicalTypeId> types[] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this use the DefaultType
struct that was used previously?
It likely doesn't really matter but this is keeping a lot more data and more complex structures with destructors statically allocated than before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I turned it into a std::array
instead now
Thanks! |
This should make it easier to keep type-related docs up to date.