-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add unparser for the C++ version #11
base: main
Are you sure you want to change the base?
Conversation
aed76e1
to
7eff287
Compare
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.
Is there any tests running the logic already?
parser/cpp/AstNode.h
Outdated
AstNode* GetChild(int i) { return static_cast<AstNode*>(jjtGetChild(i)); } | ||
JJString toString(const JJString& prefix) const { | ||
|
||
int Kind() const { return id; } |
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.
Should function name start with lower case?
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 - it's one of the weird things that happened when we did C++ first and then java. Will fix it.
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.
Actually, in C++ the style is upper case starting letter. So not changing it here.
parser/grammar/presto-extensions.txt
Outdated
@@ -111,7 +111,7 @@ void presto_aggregation_function(): | |||
{ | |||
"NUMERIC_HISTOGRAM" | |||
| "HISTOGRAM" | |||
| "APPROEX_PERCENTILE" | |||
| "APPROX_PERCENTILE" |
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.
This fix should probably be a separate commit/PR?
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.
Done
186bd59
to
71765a1
Compare
1222619
to
5aad9e0
Compare
Build now! Also, looks like we lost Leiqing's changes? Somehow the pom.xml in main doesn't have the sonatype stuff. So looks like some other merges clobbered. You will see them here now. |
Bring C++ somewhat on-par with Java.