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

Fix error when exporting a predicate to the schema. #3700

Merged
merged 3 commits into from
Jul 23, 2019

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Jul 22, 2019

The current logic only adds the '<' and '>' characters around the
predicate list if it has something other than numbers and letters.
However, this logic is faulty since a predicate consisting of only
numbers needs to have the surrounding brackets to be properly parsed.

This change removes that logic and adds the surrounding brackets to all
predicates for simplicity and correctness.

Fixes #3699


This change is Reviewable

The current logic only adds the '<' and '>' characters around the
predicate list if it has something other than numbers and letters.
However, this logic is faulty since a predicate consisting of only
numbers needs to have the surrounding brackets to be properly parsed.

This change removes that logic and adds the surrounding brackets to all
predicates for simplicity and correctness.
@martinmr martinmr requested review from manishrjain and a team as code owners July 22, 2019 22:03
@martinmr martinmr changed the title Fix error when importing a predicate to the schema. Fix error when exporting a predicate to the schema. Jul 22, 2019
Copy link

@gitlw gitlw left a comment

Choose a reason for hiding this comment

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

:lgtm: great change!

Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @manishrjain)

Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@martinmr martinmr merged commit b397c42 into master Jul 23, 2019
@martinmr martinmr deleted the martinmr/export-predicates branch July 23, 2019 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Schema exports predicates that cannot be re-imported.
3 participants