Skip to content

[WIP][SPARK-51415][SQL] Support the time type by make_timestamp() #51543

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

uros-db
Copy link
Contributor

@uros-db uros-db commented Jul 18, 2025

What changes were proposed in this pull request?

Modify the make_timestamp function to create a timestamp from date and time (and optional timezone).

make_timestamp(date [, time [, timezone ] ])

Arguments

  • date: A date expression
  • time: A time expression

Returns

  • A TIMESTAMP.

Examples

> SELECT make_timestamp(DATE'2014-12-28', TIME'6:30:45.887');
 2014-12-28 06:30:45.887

Why are the changes needed?

Users will be able to create a timestamp with (or without time zone) by using a date and time inputs.

Does this PR introduce any user-facing change?

Yes, it adds new SQL function syntax support.

How was this patch tested?

New unit tests for timestamp calculation, catalyst expression level unit tests with & without codegen, Scala function unit tests, e2e SQL tests / golden files in both ANSI and non-ANSI modes.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Jul 18, 2025
@uros-db uros-db changed the title [WIP][SPARK-51415] Support the time type by make_timestamp() [WIP][SPARK-51415][SQL] Support the time type by make_timestamp() Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant