Skip to content

[Vectorized][Feature] support do not fold constant #7667

Closed

Description

@BiteTheDDDDt

Search before asking

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

Description

Now we will get wrong result at some sql when set enable_fold_constant_by_be = false;
This is because FE function only support do some calculate with Bigint.
I add more function to support same type calculation, and cast Interger type argument to same level when these is constant.

Use case

select count(*) from date_dim where d_year=2001-1;
select count(*) from date_dim where d_year=2001+1;
select count(*) from date_dim where d_year=2001*1;

Related issues

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions