Skip to content

Fix/numeric parsing#205

Merged
evoxmusic merged 2 commits intoQovery:mainfrom
ikrestov:fix/numeric-parsing
Jul 28, 2022
Merged

Fix/numeric parsing#205
evoxmusic merged 2 commits intoQovery:mainfrom
ikrestov:fix/numeric-parsing

Conversation

@ikrestov
Copy link
Contributor

@ikrestov ikrestov commented Jul 28, 2022

Fixes #204

Should be reviewed/ merged after #203 is resolved.

This introduces an assert, to make sure column name/value lists match.

c405cba#diff-779da9398d8444388b74dd3391171530e14248d77cf4e4526eb66b901695079fR205
c405cba#diff-c74276bcbe3d49e8387a71e14066fac0ddc12564222793e2286982ca9b596426R299

This is very much a hack, as with it incorrectly parses 2 +2, which should be parsed as [Number,Plus,Number], but would be parsed as [Number, Number], but current state is much worse as any negative number -1 would not be handled correctly.

@evoxmusic
Copy link
Contributor

Can you rebase this one?

@ikrestov ikrestov force-pushed the fix/numeric-parsing branch from c405cba to 6df0e30 Compare July 28, 2022 11:28
@ikrestov
Copy link
Contributor Author

Done

Copy link
Contributor

@evoxmusic evoxmusic left a comment

Choose a reason for hiding this comment

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

Thank you for this great pr @ikrestov

@evoxmusic evoxmusic merged commit 270a232 into Qovery:main Jul 28, 2022
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.

SQL Number parsing and column value extraction mismatch.

2 participants