-
Notifications
You must be signed in to change notification settings - Fork 78
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 experimental sql_functions to Malloy #1578
Conversation
1e747be
to
19ffe36
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.
Looks good @amarkowitz, thanks for taking this over! Just the two comments I left to address (the one on this review about escaping ${
and the one about the experiment error message).
Also looks like some tests are failing... looking. |
1a0425e
to
04fb520
Compare
* add sql_* functions that allow for general sql text to be used as expressions which return a specific type. * these sql_* functions will also interpolate special ${...} lookml syntax such as ${TABLE}, ${dimension}, etc * add experimental Malloy flag 'sql_functions' that must be enabled for your Malloy source to use this feature.
04fb520
to
1705ea6
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.
LGTM
LGTM, thanks for bringing this up to date and across the finish like @amarkowitz |
TODO:
sql_functions
for this feature(The join stuff is going to be disabled for now because it doesn't fully work with the compiler's join finder yet. We were thinking first step would be to disable it with an error, second step would be to fix it and re-enable.)
Need to think about, for the future:
sql'MY SQL EXPRESSION'!number