Repository navigation
Recipe Select - Rewrite of GlueSQL - #8
Merged
Merged
Conversation
Still many errors Still unused
Lots of unwraps
9:21
13/30 passing
Passing 14/30
Passing 14/30
Passing 15/30
This should make it cleaner to work with and faster in some ways. Split up selection into stages. Passing 2/30
Passing 7/30
Passing 9/30
More query support: UPDATE and DELETE reimplemented (no validation yet!) Fixed a silly issue with constraints Further corrected/updated tests Adding ordering Improved joining Passing 14/30
Gave up on IN and Subqueries for now Fixed up some tests Fixed silly issues with aggregates Added OFFSET support Added HAVING support Passing 23/30
Passing 26/30
Passing 28/30
Improved join Implemented optimisation case for joins Multithreading Improved grouping + More Passing 28/30
+ CSV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rewrite
This is a complete rewrite of GlueSQL which increases query comprehension costs at the gain of much better query performance and much more universal evaluation.
Currently lacking when compared to GlueSQL (main)
DATE&TIMEtypes as they were added in GlueSQL after I started this and after I made the currentTIMESTAMPy functions for this version;TIMESTAMPdata type is a todo, it should have full implicit conversion toINTEGER, potentially directCASTinto a formatted datetime forTEXTmain; a key note is that out of laziness, a lot ofCloneing is currently present.Further
Out of poor version control, I have put quite a many features in this one PR, here a list of non-recipe rewrite changes:
CONVERTTRY_CONVERTLENCONCATREPLACENOWYEARMONTHDAYHOURDATEADDDATEFROMPARTSROUNDPOWIIFIFNULLNULLIFCONVERTCASTbut with flexible data types and optional rules. Currently strings must be used for data type parameters but perhaps at some point I'll do some trickery to make that not needed.TIMESTAMP,DATETIME,DATE,TIMESELECT, other query types are a TODO.CASEBig note!
This version currently (as well as poor stability) has very poor testing both in test cases and in usage, primarly the former though (I have been using it for an extensive project thus it has good testing there)