Skip to content

Make to_timestamp aware of execution timezone #17998

@Omega359

Description

@Omega359

Is your feature request related to a problem or challenge?

The to_timestamp() function currently uses no timezone (except when the input is a Timestamp type) and outputs a value of type Timestamp(Second/Nanosecond/etc, None) Now that functions have access to the ConfigOptions I believe it is possible to change this function so that it outputs timestamps in the timezone as set in the configuration.

Describe the solution you'd like

to_timestamp understands and outputs timestamps using the timezone as set in the config option datafusion.execution.time_zone.

Describe alternatives you've considered

Leave unchanged.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions