Skip to content

[Bug] get query plan failed when where clause contains datetime/date type #291

Open
@qg-lin

Description

@qg-lin

Search before asking

  • I had searched in the issues and found no similar issues.

Version

25.0.1

What's Wrong?

Get query plan failed when where clause contains datetime/date type because of incorrect sql.
origin sql:
col("statisticsDate") >= date_sub(to_date(lit(DateUtils.getYesterday)), 30)

exception:
Image

What You Expected?

generate the correct sql to get query plan when contains datetime/date type.

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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