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

Avoiding addition of redundant unary operators #7579

Merged
merged 4 commits into from
Mar 3, 2021

Conversation

GuptaManan100
Copy link
Member

@GuptaManan100 GuptaManan100 commented Mar 2, 2021

Description

The parser is modified to remove unary operators which are redundant. For example :- Parsing SET S= +++-++-+(4+1) used to result in set S = + + + - + + - +(4 + 1) but now produces set S = 4 + 1

Related Issue(s)

Checklist

  • Should this PR be backported? No
  • Tests were added or are not required. Unit tests have been added.
  • Documentation was added or is not required. Documentation is not required as it is an internal change.

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving
  • VReplication
  • Cluster Management
  • Build/CI
  • VTAdmin

go/vt/sqlparser/sql.y Outdated Show resolved Hide resolved
@GuptaManan100 GuptaManan100 requested a review from systay March 2, 2021 08:07
@systay systay merged commit 25c1088 into vitessio:master Mar 3, 2021
@askdba askdba added this to the v10.0 milestone Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unary Operators Redundancy
4 participants