Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
from_json_to_structs
(#2510)
* Implement `castStringsToBooleans` Signed-off-by: Nghia Truong <[email protected]> * Implement `removeQuotes` Signed-off-by: Nghia Truong <[email protected]> * Rewrite using offsets and chars Signed-off-by: Nghia Truong <[email protected]> * Fix empty input Signed-off-by: Nghia Truong <[email protected]> * Misc Signed-off-by: Nghia Truong <[email protected]> * Add `nullifyIfNotQuoted` option for `removeQuotes` Signed-off-by: Nghia Truong <[email protected]> * Implement `castStringsToDecimals` Signed-off-by: Nghia Truong <[email protected]> * Implement `removeQuotesForFloats` Signed-off-by: Nghia Truong <[email protected]> * Fix `removeQuotesForFloats` Signed-off-by: Nghia Truong <[email protected]> * Implement `castStringsToIntegers` Signed-off-by: Nghia Truong <[email protected]> * Implement non-legacy `castStringsToDates` Signed-off-by: Nghia Truong <[email protected]> * WIP for `cast_strings_to_dates_legacy` Signed-off-by: Nghia Truong <[email protected]> * Revert "WIP for `cast_strings_to_dates_legacy`" This reverts commit dcb463e. * Fix compile issues Signed-off-by: Nghia Truong <[email protected]> * WIP: Implement `from_json_to_structs` Signed-off-by: Nghia Truong <[email protected]> * Fix cmake Signed-off-by: Nghia Truong <[email protected]> * Fix compile issues Signed-off-by: Nghia Truong <[email protected]> * Implement `castStringsToFloats` Signed-off-by: Nghia Truong <[email protected]> * WIP Signed-off-by: Nghia Truong <[email protected]> * WIP: Implementing `fromJSONToStructs` Signed-off-by: Nghia Truong <[email protected]> * Fix compile errors Signed-off-by: Nghia Truong <[email protected]> * Cleanup Signed-off-by: Nghia Truong <[email protected]> * Revert code as we still need them * Add error check Signed-off-by: Nghia Truong <[email protected]> * Add more comments Signed-off-by: Nghia Truong <[email protected]> * Cleanup Signed-off-by: Nghia Truong <[email protected]> * Return as-is if the column is date/time Signed-off-by: Nghia Truong <[email protected]> * Update test Signed-off-by: Nghia Truong <[email protected]> * Update cudf Signed-off-by: Nghia Truong <[email protected]> * Revert "Update cudf" This reverts commit 5d07db1. * Update cudf * Update cudf * Change header * Rewrite JSONUtils.cpp * Implement a common function for converting column Signed-off-by: Nghia Truong <[email protected]> * Rewrite `convert_data_type` Signed-off-by: Nghia Truong <[email protected]> * Remove `cast_strings_to_dates` Signed-off-by: Nghia Truong <[email protected]> * Implement `convert_data_type` Signed-off-by: Nghia Truong <[email protected]> * Fix compile errors Signed-off-by: Nghia Truong <[email protected]> * Add `CUDF_FUNC_RANGE();` Signed-off-by: Nghia Truong <[email protected]> * Fix schema Signed-off-by: Nghia Truong <[email protected]> * Complete `from_json_to_structs` Signed-off-by: Nghia Truong <[email protected]> * Fix null mask Signed-off-by: Nghia Truong <[email protected]> * Write Javadoc Signed-off-by: Nghia Truong <[email protected]> * Rewrite JNI Signed-off-by: Nghia Truong <[email protected]> * Remove deprecated function Signed-off-by: Nghia Truong <[email protected]> * Revert test Signed-off-by: Nghia Truong <[email protected]> * Remove header Signed-off-by: Nghia Truong <[email protected]> * Rewrite Javadoc Signed-off-by: Nghia Truong <[email protected]> * Rename variable Signed-off-by: Nghia Truong <[email protected]> * Rewrite docs Signed-off-by: Nghia Truong <[email protected]> * Revert test Signed-off-by: Nghia Truong <[email protected]> * Cleanup headers Signed-off-by: Nghia Truong <[email protected]> * Cleanup Signed-off-by: Nghia Truong <[email protected]> * Rewrite the conversion functions Signed-off-by: Nghia Truong <[email protected]> * Move code Signed-off-by: Nghia Truong <[email protected]> * Remove call to `make_structs_column` Signed-off-by: Nghia Truong <[email protected]> * Cleanup Signed-off-by: Nghia Truong <[email protected]> * Optimize conversion further, avoiding to materialize column if not needed Signed-off-by: Nghia Truong <[email protected]> * Rewrite docs and change function name Signed-off-by: Nghia Truong <[email protected]> * Reorganize code Signed-off-by: Nghia Truong <[email protected]> * Handle schema mismatching Signed-off-by: Nghia Truong <[email protected]> * Add test Signed-off-by: Nghia Truong <[email protected]> * Add another test Signed-off-by: Nghia Truong <[email protected]> * Revert "Add another test" This reverts commit 8a17651. * Fix schema mismatch Signed-off-by: Nghia Truong <[email protected]> * Cleanup Signed-off-by: Nghia Truong <[email protected]> * Add another test Signed-off-by: Nghia Truong <[email protected]> * Revert "Add another test" This reverts commit cf9d6bf. * Revert "Add test" This reverts commit 553d7d0. Signed-off-by: Nghia Truong <[email protected]> * Add prefix `spark_rapids_jni::` Signed-off-by: Nghia Truong <[email protected]> * Remove handling for schema mismatching Signed-off-by: Nghia Truong <[email protected]> * Avoid materializing a column when converting strings Signed-off-by: Nghia Truong <[email protected]> * Revert "Remove handling for schema mismatching" This reverts commit d2b6fb5. * Fix handling for schema mismatching in case of `column_view` input Signed-off-by: Nghia Truong <[email protected]> --------- Signed-off-by: Nghia Truong <[email protected]>
- Loading branch information