Skip to content

Conversation

Tishj
Copy link
Contributor

@Tishj Tishj commented May 23, 2023

This should make it easier to keep type-related docs up to date.

@Tishj Tishj changed the base branch from master to feature May 23, 2023 14:28
@Tishj
Copy link
Contributor Author

Tishj commented May 24, 2023

We might also be able to use this list for test_all_types purposes

Copy link
Collaborator

@Mytherin Mytherin left a 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:

namespace duckdb {

const case_insensitive_map_t<LogicalTypeId> &GetInternalTypes() {
static const std::pair<std::string, LogicalTypeId> types[] = {
Copy link
Collaborator

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.

Copy link
Contributor Author

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

@Mytherin Mytherin changed the base branch from feature to master May 30, 2023 13:27
@Mytherin Mytherin merged commit 54a1955 into duckdb:master May 30, 2023
@Mytherin
Copy link
Collaborator

Thanks!

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