Skip to content

When timezone param of unix_timestamp is CST, ambiguous zone will lead different result. #12411

Description

@littlelittlewhite09

Backend

VL (Velox)

Bug description

example:

set spark.sql.optimizer.excludedRules=org.apache.spark.sql.catalyst.optimizer.ConstantFolding;
select from_unixtime(
  unix_timestamp('Sun Jun 14 20:00:05 CST 2026', 'EEE MMM dd HH:mm:Ss z yyyy'),
  'yyyy-MM-dd HH:mm:ss');

vanilla: 2026-06-14 20:00:05
gluten: 2026-06-15 09:00:05

Gluten version

1.6.0

Spark version

3.5.8

Spark configurations

spark.sql.legacy.timeParserPolicy=LEGACY

System information

No response

Relevant logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions