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
Improve tutorial #39
Comments
Is it possible to write Python extensions for Logica? |
@TimKam, this functionality is not exposed now, but this is something that is natural to add. It would be quite easy to add annotation-plug-ins. For example we can let a user write a function that renders a result of a predicate as a graph. Then they could write a program G("a", "b");
G("b", "c");
G("c", "d");
G("d", "a");
G("d", "e");
@RenderGraph(G, "/path/to/graph.html"); And when this program runs the HTML file has rendering of the graph I think it's much more tricky to add ability to call python functions from Logica. Like the user defining: def F(x):
return 2 * x; and then having Logica program Q(F(5)); resulting in Q having a row Could you tell a little bit about usecase that you had in mind? |
Thank you for the prompt response. In my particular case I want to take a directed graph, process it in Python and return the result back to Logica. I am not sure if this is your "easy" or "tricky" case: in your "easy" case, could one write the result back to Logica? Edit: Should we move to a new ticket? |
We should have started the discussion in a separated ticket or in a discussion section :-) But as it's already going here, let's get to the bottom of it and then create an appropriate issue. This seems somewhere in the middle between "easy" and "tricky". |
The input should also come from Logica. So it would be Logica -> Python (for example) -> Logica. |
@EvgSkv
|
@atqnp |
You use Z in the tutorial in what feels to me like a confusing way. It is first introduced as an alias for the Integers, and then is re-introduced as a subset of the integers. But Z is not a builtin equivalent to the Integers, it's just a variable name. |
The colab notebooks assumes you have access to a BigQuery project "YOUR_PROJECT": What would be a better default name, for someone who doesn't normally run BigQuery out of colab? |
Typo |
@evelynmitchell Thanks for feedback! I agree with these comments and is thinking how to address them. What would be a better default name, for someone who doesn't normally run BigQuery out of colab? |
Simpler might be to add this to the tutorial: The intros suggest starting with the tutorial, but I was quite stuck getting the tutorial to run until I stumbled on this fragment in the Hello World example. |
I'm very much sold on the benefits of Logica for managing large amount of SQL. Its important to note that you have an especially compelling use case when the data is modelled in a star schema because the amount of re-use potential across queries ends up being huge. I think people coming from SQL will want to see like for like comparisons. Things like GROUP BY are mostly implicitly explained, but how do I do a LEFT JOIN? Is there an equivalent of the HAVING keyword? And so on. I think this is quite a nice approach that could work well here too: |
I am very curious about experience of newcomers with the tutorial. I am sure it can be improved to make onboarding easier.
The text was updated successfully, but these errors were encountered: