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

refactor!: rename and move extension associated code #148

Merged

Conversation

vbarua
Copy link
Member

@vbarua vbarua commented May 10, 2023

BREAKING CHANGE: Moves and renames code associated w/ extensions

Background

The original extension handling code only dealt with functions, and as such a number of classes associated with this handling had names that included the word Function.

However, extensions can also include custom types, handling for which was added in #144

In that PR I suggested a number of class renames and moves, which are implemented herein.

These changes DO NOT change any functionality in the code.

Change Summary

  • io.substrait.expression.proto.AdvancedExtensionLookup -> io.substrait.extension.AdvancedExtensionLookup
  • io.substrait.expression.proto.AbstractFunctionLookup -> io.substrait.extension.AbstractExtensionLookup
  • io.substrait.expression.proto.FunctionCollector -> io.substrait.extension.ExtensionCollector
  • io.substrait.expression.proto.ImmutableFunctionLookup -> io.substrait.extension.ImmutableExtensionLookup
  • io.substrait.expression.FunctionLookup -> io.substrait.extension.ExtensionLookup
  • io.substrait.function.FunctionSignatures -> io.substrait.extension.ExtensionSignatures
  • io.substrait.function.SimpleExtension -> io.substrait.extension.SimpleExtension
  • io.substrait.type.proto.FromProto -> io.substrait.type.proto.ProtoTypeConverter

Bonus

  • io.substrait.io.substrait.AdvancedExtension -> io.substrait.AdvancedExtension

@vbarua vbarua marked this pull request as ready for review May 10, 2023 19:41
Copy link
Collaborator

@jacques-n jacques-n 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 your patience!

@jacques-n jacques-n merged commit 6f29d32 into substrait-io:main May 23, 2023
ajegou pushed a commit to ajegou/substrait-java that referenced this pull request Mar 29, 2024
* refactor: rename FunctionSignatures to ExtensionSignatures
* refactor: rename FromProto to ProtoTypeConverter
* refactor: rename AbstractFunctionLookup to AbstractExtensionLookup
* refactor: rename FunctionLookup to ExtensionLookup
* refactor: rename ImmutableFunctionLookup to ImmutableExtensionLookup
* refactor: rename FunctionCollector to ExtensionCollector
* refactor: move extension related code to io.substrait.extension
* refactor: move AdvancedExtension to io.substrait.extension

---------

Co-authored-by: Jacques Nadeau <jacques@apache.org>
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