Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Jan 8, 2024
1 parent 8b0b9c5 commit 4b183a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_tests/src/main/python/json_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ def test_from_json_struct_date_fallback_legacy(date_gen, date_format):
json_string_gen = StringGen(r'{ "a": ' + date_gen + ' }') \
.with_special_case('{ "a": null }') \
.with_special_case('null')
options = { 'dateFormat': date_format } if len(date_format) > 0 else { }
options = { 'dateFormat': date_format } if date_format else { }
assert_gpu_fallback_collect(
lambda spark : unary_op_df(spark, json_string_gen) \
.select(f.col('a'), f.from_json('a', 'struct<a:date>', options)),
Expand All @@ -693,7 +693,7 @@ def test_from_json_struct_date_fallback_non_default_format(date_gen, date_format
json_string_gen = StringGen(r'{ "a": ' + date_gen + ' }') \
.with_special_case('{ "a": null }') \
.with_special_case('null')
options = { 'dateFormat': date_format } if len(date_format) > 0 else { }
options = { 'dateFormat': date_format } if date_format else { }
assert_gpu_fallback_collect(
lambda spark : unary_op_df(spark, json_string_gen) \
.select(f.col('a'), f.from_json('a', 'struct<a:date>', options)),
Expand Down

0 comments on commit 4b183a4

Please sign in to comment.