-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement Spark-compatible CAST between integer types (#340)
* handled cast for long to short * handled cast for all overflow cases * ran make format * added check for overflow exception for 3.4 below. * added comments to on why we do overflow check. added a check before we fetch the sparkInvalidValue * -1 instead of 0, -1 indicates the provided character is not present * ran mvn spotless:apply * check for presence of ':' and have asserts accordingly * reusing exising test functions * added one more check in assert when ':' is not present * redo the compare logic as per andy's suggestions. --------- Co-authored-by: ganesh.maddula <[email protected]>
- Loading branch information
1 parent
2741ae7
commit b39ed88
Showing
3 changed files
with
131 additions
and
13 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