We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from_json
PR #9423 adds basic support for from_json, but did not add support for the boolean type.
Add support for boolean.
Failing test:
def test_from_json_struct_boolean(): json_string_gen = StringGen(r'{ "a": [truefalsTRUEFALS]{0,5}, "b": [0-9]{0,2} }') \ .with_special_pattern('{ "a": true, "b": 1 }', weight=50) \ .with_special_pattern('{ "a": false, "b": 0 }', weight=50) \ .with_special_pattern('', weight=50) \ .with_special_pattern('null', weight=50) assert_gpu_and_cpu_are_equal_collect( lambda spark : unary_op_df(spark, json_string_gen) \ .select(f.from_json('a', 'struct<a:boolean, b:boolean>')), conf={"spark.rapids.sql.expression.JsonToStructs": True})
The text was updated successfully, but these errors were encountered:
andygrove
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
PR #9423 adds basic support for from_json, but did not add support for the boolean type.
Describe the solution you'd like
Add support for boolean.
Describe alternatives you've considered
Additional context
Failing test:
The text was updated successfully, but these errors were encountered: