Skip to content
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

Implementing self joins for sql alchemy backend #654

Closed
xrmx opened this issue Jun 22, 2016 · 2 comments
Closed

Implementing self joins for sql alchemy backend #654

xrmx opened this issue Jun 22, 2016 · 2 comments

Comments

@xrmx
Copy link
Contributor

xrmx commented Jun 22, 2016

i'd like to implement some cohort analysis in caravel like this:
https://www.periscopedata.com/blog/how-to-calculate-cohort-retention-in-sql.html#calculating-retention-of-new-vs-existing-users

Do you think it is feasible? Other than the self join i'll also need a way to assign metrics to another table than the default one. What do you think?

@mistercrunch
Copy link
Member

The Caravel approach would be to precompute your data a pipeline and point Caravel to the output. We may support many-to-one joins in the future, but self-join seems like a slippery slope.

We are planning on adding a state of the art, integrated SQL editor to Caravel, so some of that more advanced SQL pre-processing could be done in that editor, and then visualized in Caravel.

If you are interested in retention, check out this super-informative video by an ex-Facebook colleague about "Growth Accounting":
https://www.facebook.com/video.php?v=3707283286197

@xrmx
Copy link
Contributor Author

xrmx commented Jun 23, 2016

With my actual data pipeline the self join would be quite handy as i have denormalized data. Thanks for the interesting video. Looking forward to the SQL editor then, thanks!

zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
Bumps [chalk](https://github.com/chalk/chalk) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/chalk/chalk/releases)
- [Commits](chalk/chalk@v4.0.0...v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
Bumps [chalk](https://github.com/chalk/chalk) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/chalk/chalk/releases)
- [Commits](chalk/chalk@v4.0.0...v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
Bumps [chalk](https://github.com/chalk/chalk) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/chalk/chalk/releases)
- [Commits](chalk/chalk@v4.0.0...v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
Bumps [chalk](https://github.com/chalk/chalk) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/chalk/chalk/releases)
- [Commits](chalk/chalk@v4.0.0...v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants