-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Execute
from_json
with struct schema using `JSONUtils.fromJSONToStr…
…ucts` (#11618) * Migrate `castJsonStringToBool` to `JSONUtils.castStringsToBooleans` Signed-off-by: Nghia Truong <[email protected]> * Migrate undoKeepQuotes` to use `JSONUtils.removeQuote` Signed-off-by: Nghia Truong <[email protected]> * Migrate `fixupQuotedStrings` to `JSONUtils.removeQuotes` Signed-off-by: Nghia Truong <[email protected]> * Use `castStringsToDecimals` Signed-off-by: Nghia Truong <[email protected]> * Use `removeQuotesForFloats` for implementing `castStringToFloat` Signed-off-by: Nghia Truong <[email protected]> * Use `JSONUtils.castStringsToIntegers` Signed-off-by: Nghia Truong <[email protected]> * Throw if not supported type Signed-off-by: Nghia Truong <[email protected]> * Use `JSONUtils.castStringsToDates` for non-legacy conversion Signed-off-by: Nghia Truong <[email protected]> * Revert "Use `JSONUtils.castStringsToDates` for non-legacy conversion" This reverts commit b3dcffc. * Use `JSONUtils.castStringsToFloats` Signed-off-by: Nghia Truong <[email protected]> * Fix compile error Signed-off-by: Nghia Truong <[email protected]> * Adopting `fromJSONToStructs` Signed-off-by: Nghia Truong <[email protected]> * Fix style Signed-off-by: Nghia Truong <[email protected]> * Adopt `JSONUtils.convertDataType` Signed-off-by: Nghia Truong <[email protected]> * Cleanup Signed-off-by: Nghia Truong <[email protected]> * Fix import Signed-off-by: Nghia Truong <[email protected]> * Revert unrelated change Signed-off-by: Nghia Truong <[email protected]> * Remove empty lines Signed-off-by: Nghia Truong <[email protected]> * Change function name Signed-off-by: Nghia Truong <[email protected]> * Add more data to test Signed-off-by: Nghia Truong <[email protected]> * Fix test pattern Signed-off-by: Nghia Truong <[email protected]> * Add test Signed-off-by: Nghia Truong <[email protected]> --------- Signed-off-by: Nghia Truong <[email protected]>
- Loading branch information
Showing
3 changed files
with
111 additions
and
287 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
Oops, something went wrong.