From a753e8867e7e274412bedd2af53b88c9213f7ae4 Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Mon, 8 Jan 2024 10:49:21 -0600 Subject: [PATCH] Revert "fix regression" This reverts commit 4b183a4c691226b40c9083861e7a0009da8c5d7e. --- integration_tests/src/main/python/json_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration_tests/src/main/python/json_test.py b/integration_tests/src/main/python/json_test.py index 5fdb1149343..7357ae1a79f 100644 --- a/integration_tests/src/main/python/json_test.py +++ b/integration_tests/src/main/python/json_test.py @@ -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 date_format else { } + options = { 'dateFormat': date_format } if len(date_format) > 0 else { } assert_gpu_fallback_collect( lambda spark : unary_op_df(spark, json_string_gen) \ .select(f.col('a'), f.from_json('a', 'struct', options)), @@ -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 date_format else { } + options = { 'dateFormat': date_format } if len(date_format) > 0 else { } assert_gpu_fallback_collect( lambda spark : unary_op_df(spark, json_string_gen) \ .select(f.col('a'), f.from_json('a', 'struct', options)),