-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Spark CAST(string as boolean) (#10382)
Summary: Spark only allows the strings `t, f, y, n, 1, 0, yes, no, true, false` and their uppercase equivalents. Folly allows more strings than spark does, e.g. 'on' and 'off'. This PR restricts the strings that can be converted to boolean to these strings. Strings apart from these will throw. Pull Request resolved: #10382 Reviewed By: kgpai Differential Revision: D59475498 Pulled By: pedroerp fbshipit-source-id: 25df40fc23e84e27bbd3f19b819764aca2e562df
- Loading branch information
1 parent
c3839e1
commit 5926750
Showing
4 changed files
with
114 additions
and
68 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
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