Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Sep 17, 2021

Which issue does this PR close?

Resolves #1014

Rationale for this change

We would like to order Exprs in a consistent way in our tests. See details on https://github.com/influxdata/influxdb_iox/pull/2564 in https://github.com/influxdata/influxdb_iox/pull/2564#discussion_r710817261

This also is a necessary (but not sufficient) step towards being able to use Exprs in sets and maps (still need to implement Ord and Hash) which might have helped @waynexia in #792 with CSE and would help with other algebriac transformations in the future.

What changes are included in this PR?

impl PartialOrd` for `Expr`

Are there any user-facing changes?

Can now compare Exprs

Copy link
Member

@waynexia waynexia left a comment

Choose a reason for hiding this comment

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

The change looks good to me. Failing CI seems unrelated (looks like the rev of testing submodule is wrong)

@Dandandan
Copy link
Contributor

Also LGTM if testing module change is reverted (and I guess CI succeeds)

@houqp houqp added the enhancement New feature or request label Sep 18, 2021
@alamb
Copy link
Contributor Author

alamb commented Sep 18, 2021

The change looks good to me. Failing CI seems unrelated (looks like the rev of testing submodule is wrong)

Good eyes -- thank you for the spot @waynexia . I will revert that

@Dandandan Dandandan merged commit db305da into apache:master Sep 18, 2021
@alamb alamb deleted the alamb/partial_ord_for_expr branch August 8, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement PartialOrd or Expr

4 participants