forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'equivalent' method to Type (facebookincubator#1740)
Summary: The `kindEquals` method only checks if the `TypeKind` of two types matches recursively. However, certain types like DecimalType and FixedSizedArrayType require their parameters to match as well. This type of equivalence is needed by the SignatureBinder. A new `equivalent` method has been added to Type for this requirement. Example: Two FixedSizedArrayTypes are equivalent only if their lengths are equal. Two DecimalTypes are equivalent only if their precision/scale are the same. Pull Request resolved: facebookincubator#1740 Reviewed By: pedroerp Differential Revision: D36986040 Pulled By: mbasmanova fbshipit-source-id: 495cbe1c01aa87aea47c1c9d4f891e3cc784f4b2
- Loading branch information
1 parent
a5729d8
commit ab9a45c
Showing
5 changed files
with
241 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.