-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
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
date_format should not suggest enabling incompatibleDateFormats for formats we cannot support #2532
Conversation
assert_gpu_and_cpu_are_equal_collect( | ||
lambda spark : unary_op_df(spark, data_gen).selectExpr("date_format(a, '{}')".format(date_format))) | ||
|
||
unsupported_date_formats_force = ['F'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be duplicated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second version of the test specifies conf = {"spark.rapids.sql.incompatibleDateFormats.enabled": "true"}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sorry, I mean the variable unsupported_date_formats_force
is assigned but not used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is fixed now. There were numerous other issues with the tests that are also resolved now.
assert_gpu_and_cpu_are_equal_collect( | ||
lambda spark : unary_op_df(spark, data_gen).selectExpr("date_format(a, '{}')".format(date_format))) | ||
|
||
maybe_supported_date_formats_force = ['dd-MM-yyyy'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here
build |
@revans2 @wjxiz1992 Let me know if any more changes are needed |
@andygrove can we retarget this to 21.08? |
Moving to branch-21.08 after @Salonijain27 confirmed with the PR author. |
…ormats we cannot support Signed-off-by: Andy Grove <andygrove@nvidia.com>
50af85a
to
4e61791
Compare
build |
Signed-off-by: Andy Grove andygrove@nvidia.com
Closes #2517.