Skip to content
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

[FEA] Support non-UTC timezone for casting from date to timestamp #11461

Open
res-life opened this issue Sep 11, 2024 · 0 comments · May be fixed by #11462
Open

[FEA] Support non-UTC timezone for casting from date to timestamp #11461

res-life opened this issue Sep 11, 2024 · 0 comments · May be fixed by #11462
Assignees
Labels
feature request New feature or request

Comments

@res-life
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
From a customer, need support non-UTC timezone for casting from date to timestamp
Tests:

TZ=Asia/Shanghai ./integration_tests/run_pyspark_from_build.sh -s -k test_date_to_timestamp

case:

@pytest.mark.parametrize('parser_policy', ["LEGACY", "CORRECTED", "EXCEPTION"], ids=idfn)
def test_date_to_timestamp(parser_policy):
    parser_policy_dic = {"spark.sql.legacy.timeParserPolicy": "{}".format(parser_policy)}
    incompatible_dic = {"spark.rapids.sql.incompatibleDateFormats.enabled": True}
    assert_gpu_and_cpu_are_equal_sql(
        lambda spark : unary_op_df(spark, date_gen),
        "tab",
        "SELECT cast(a as timestamp) from tab",
        conf=copy_and_update(parser_policy_dic, incompatible_dic))
@res-life res-life added ? - Needs Triage Need team to review and classify feature request New feature or request labels Sep 11, 2024
@res-life res-life self-assigned this Sep 11, 2024
@mattahrens mattahrens removed the ? - Needs Triage Need team to review and classify label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
2 participants