Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Implicit type cast For Operators. #1054

Merged
merged 6 commits into from
Nov 3, 2021

Conversation

m-schen
Copy link
Contributor

@m-schen m-schen commented Nov 2, 2021

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #736
issue #740
issue #782
issue #789
issue #804

What this PR does / why we need it:

  1. Support binary operators (+, -, *, / ,%)(=, !=, >, >=, <, <=) between each types According a type-cast-logic before operator evaluates.

  2. Support NOT unary operator for each types. And fix some bugs while rewriting Not AST.

  3. Support div operator and / operator.

Special notes for your reviewer:

ignore a type check logic while do extend pruning (see function toChar), because operators will support this case.

Additional documentation (e.g. design docs, usage docs, etc.):

Not Available

div is integer division; / is division;
Copy link
Contributor

@nnsgmsone nnsgmsone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@yingfeng yingfeng merged this pull request into matrixorigin:main Nov 3, 2021
@m-schen m-schen deleted the implicitTypeCast branch November 8, 2021 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants