Skip to content
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

Minor expression cleanups #88

Merged
merged 2 commits into from
Nov 25, 2021

Conversation

jacques-n
Copy link
Contributor

@jacques-n jacques-n commented Nov 25, 2021

  • Add java package name for all proto files
  • Add an explicit CAST expression
  • Update the varchar literal to specify it's length
  • Move AggregateFunction, AggregationPhase and SortField out of the Expression message (top-level in expression.proto).
  • Remove AggregationPhase from aggregate rel since it is specified on the individual aggregation function bindings
  • Add support for a filter as part of an aggregation measure (SQL2003)
  • Cleanup some markdown linebreaks
  • Add ReturnProgram to derivation expression to support SSA return definition (reduce repetition)

- Add java package name for all proto files
- Add an explicit CAST expression
- Update the varchar literal to specify it's length
- Move AggregateFunction, AggregationPhase and SortField out of the Expression message (top-level in expression.proto).
- Remove AggregationPhase from aggregate rel since it is specified on the individual aggregation function bindings
- Add support for a filter as part of an aggregation measure (SQL2003)
- Cleanup some markdown linebreaks
Copy link
Contributor

@cpcloud cpcloud left a comment

Choose a reason for hiding this comment

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

LGTM

@jacques-n jacques-n merged commit 5f521ba into substrait-io:main Nov 25, 2021
@jacques-n jacques-n deleted the cast_and_varchar_literal branch November 25, 2021 20:01
almann added a commit to almann/substrait that referenced this pull request Jul 20, 2022
Given that the `Expression` node has an explicit `Cast` variant that was
added in substrait-io#88, the `cast` function definition seems redundant.
almann added a commit to almann/substrait that referenced this pull request Jul 20, 2022
Given that the `Expression` node has an explicit `Cast` variant that was
added in substrait-io#88, the `cast` function definition (added in substrait-io#152) seems redundant.

This change is technically breaking as there could be dependent plans
that are modeling a `cast` via function call over the expression.
almann added a commit to almann/substrait that referenced this pull request Jul 21, 2022
Given that the `Expression` node has an explicit `Cast` variant that was
added in substrait-io#88, the `cast` function definition (added in substrait-io#152) seems redundant.

BREAKING CHANGE: Existing plans that are modeling `cast` with this
built-in function definition over the expression will not be valid.
jacques-n pushed a commit that referenced this pull request Jul 25, 2022
Given that the `Expression` node has an explicit `Cast` variant that was
added in #88, the `cast` function definition (added in #152) seems redundant.

BREAKING CHANGE: Existing plans that are modeling `cast` with the `cast`
function (as opposed to the `cast` expression) will no longer be valid. All
producers/consumers should use the `cast` expression type.
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.

2 participants