Skip to content

feat: add visit type support #94

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

zhjwpku
Copy link
Collaborator

@zhjwpku zhjwpku commented May 9, 2025

Add a TypeId field to each concrete type to enable macro-based type visitor support.

@zhjwpku zhjwpku mentioned this pull request May 10, 2025
@zhjwpku zhjwpku requested a review from wgtmac May 10, 2025 10:22
Copy link
Member

@wgtmac wgtmac 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 adding this! I was thinking of the same thing.

* under the License.
*/

#pragma once
Copy link
Member

Choose a reason for hiding this comment

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

nit: add the \file docstring and mention that it is adapted from Apache Arrow.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will add later today, thanks for the suggestion.

Copy link
Contributor

Choose a reason for hiding this comment

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

If we take big pieces from other projects, then we also want to add that to the LICENSE:

For example in PyIceberg: https://github.com/apache/iceberg-python/blob/260ef54e3920d435ae3b2ccda090e66f9c1ac015/LICENSE#L206-L213

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good, let's include that in both the LICENSE and NOTICE.

zhjwpku added 5 commits May 12, 2025 21:53
Signed-off-by: Junwang Zhao <[email protected]>
Signed-off-by: Junwang Zhao <[email protected]>
The visit type infrastructure is adapted from apache arrow.

Add a reference note per @lidavidm's suggestion.

Signed-off-by: Junwang Zhao <[email protected]>
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.

4 participants