-
Notifications
You must be signed in to change notification settings - Fork 12
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
engine: new interpreter, query planner #1166
Conversation
Still need to rip out a lot of old stuff |
node/engine2/interpreter/values.go
Outdated
} | ||
} | ||
|
||
// valueToString converts a value to a string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here is an example of converting values to a string and back
3d80b29
to
a2a2d11
Compare
Will write a more in-depth write-up tomorrow |
@@ -1141,7 +1141,7 @@ func (c *DataType) PGString() (string, error) { | |||
scalar = "UINT256" | |||
case DecimalStr: | |||
if c.Metadata == ZeroMetadata { | |||
return "", fmt.Errorf("decimal type must have metadata") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we can actually git rm -r _previous/core/types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A handful of nits aside, LGTM. 🚀
/* | ||
* A ANTLR4 grammar for Kuneiform. | ||
* Developed by the Kwil team. | ||
*/ | ||
parser grammar KuneiformParser; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Yaiba I guess you've been in the loop on the antlr parser bits? I haven't gotten into this file at all, but I got the broad strokes on the intent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
He should be. Quite a bit of the changes here were actually done by him
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah will take a look
ripping old engine out replaced old engine removed parse references fixed lint issues delete testdata fix parse
4a39077
to
5b8d878
Compare
Replaces #1070.
A quick explanation of what changed (aside from the planned features and syntax changes to the engine):
parse
module has been removed. All parsing is now done post-consensus (no parsers are needed by the client), so there was no longer a reason to keep it its own submodule.RawStatement
transaction, which takes any sort of statementcreate table
,drop table
,alter table
,create action
, and eveninsert
/update
/delete
. There is a basic roles system that controls who can do execute these statements.db_owner
in the genesis file that specifies the initial schema owner. This is the first wallet that can create tables, actions, roles, etc.. This must be set for every network, since we no longer support anybody creating a schema.main
namespace.info
where all data about the current schema can be queried.