-
Notifications
You must be signed in to change notification settings - Fork 46
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
WIP sql ast #518
WIP sql ast #518
Conversation
… sql expressions.
…utomatically determine relations for from clause.
Not really what I was hoping to do do today but certainly useful. Ready for review. @7andrew7 This changed the interface for table scans and allows you to push work down into the database. Hence, raco has to be adapted. We can have a chat about the format. At the moment, I expect DbQueryScan operators to be like: {
"query": {
"selectExpressions": [{
"rootExpressionOperator": {
"type": "COLUMN",
"columnIdx": 0,
"relationKey": {
"userName": "public",
"relationName": "TwitterK",
"programName": "adhoc"
}
},
"outputName": "x"
}]
},
"opId": "V1",
"opType": "DbQueryScan",
"opName": "MyriaScan(public:adhoc:TwitterK)"
} There is also support for where clauses and order by. See the code for a reference. |
No sense merging these changes until the raco changes are completed, right? No guarantee this is the right java-side encoding until both work together... |
I agree. |
I'll take a crack at raco side, but it probably won't be this week. |
One thing that is missing and should probably be added is aggregation. My plan is to add another expression operator and automatically generate the group by clause. Will tackle this some time next week. It should not affect the JSON api, though. |
Another way to go about this, btw, would be to try and actually use the Daniel Halperin On Fri, May 23, 2014 at 12:19 AM, Dominik Moritz
|
I don't get it. Do you mean not using any of the code that I've written and just take the query plan and generate a query from that? Sounds possible but won't get us very far since pg and myria have non overlapping features. |
Closed via discussion today. Possibly reexplore when @domoritz is back. |
Fixes #377
WIP until raco side is implemented