Skip to content

Conversation

@bkietz
Copy link
Member

@bkietz bkietz commented Nov 16, 2021

No description provided.

@bkietz bkietz requested a review from lidavidm November 16, 2021 19:38
@github-actions
Copy link

@github-actions
Copy link

⚠️ Ticket has not been started in JIRA, please click 'Start Progress'.

Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

Sorry for the long delay.

This looks good to me, I left a few questions.


/// The default registry, which includes built-in simplification passes.
ARROW_EXPORT
ExpressionSimplificationPassRegistry* default_expression_simplification_registry();
Copy link
Member

Choose a reason for hiding this comment

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

nit: DefaultExpressionSimplificationRegistry?

Copy link
Member

Choose a reason for hiding this comment

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

Though I see the exec node registry and function registry use different naming schemes (default_exec_factory_registry, GetFunctionRegistry)

ExpressionSimplificationPassRegistry* default_expression_simplification_registry() {
class DefaultRegistry : public ExpressionSimplificationPassRegistry {
public:
DefaultRegistry() {
Copy link
Member

Choose a reason for hiding this comment

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

Looks like FoldConstants should be removed above?

return expr;
}));

if (Identical(simplified, canonicalized)) return expr;
Copy link
Member

Choose a reason for hiding this comment

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

Should this return canonicalized?

Copy link
Member

Choose a reason for hiding this comment

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

It also seems we don't need to canonicalize below before calling this.

@github-actions
Copy link

Thank you for your contribution. Unfortunately, this pull request has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this PR will be closed in 14 days. Feel free to re-open this if it has been closed in error. If you do not have repository permissions to reopen the PR, please tag a maintainer.

@github-actions github-actions bot added the Status: stale-warning Issues and PRs flagged as stale which are due to be closed if no indication otherwise label Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: C++ Status: stale-warning Issues and PRs flagged as stale which are due to be closed if no indication otherwise

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants