Skip to content

DATE_TRUNC Function not suppot DATE_TRUNC(<time_unit>, <datetime>) #2673

@liujie-yt

Description

@liujie-yt

Doris 3.0.3 is not suppot DATE_TRUNC(<time_unit>, )

select date_trunc('month', OEE_DATE) from mcp.line_oee

SQL Error [1105] [HY000]: errCode = 2, detailMessage = the second parameter of date_trunc function must be a string constant: date_trunc('month', OEE_DATE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions