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

Toggle tuple/table output in SQL #254

Open
pbailis opened this issue Mar 1, 2018 · 0 comments
Open

Toggle tuple/table output in SQL #254

pbailis opened this issue Mar 1, 2018 · 0 comments

Comments

@pbailis
Copy link
Member

pbailis commented Mar 1, 2018

It would be helpful to be able to toggle between tuple and table-level reporting in the SQL console; e.g.,

macrobase-sql> SELECT * FROM DIFF(SPLIT (SELECT *, percentile(battery_drain) AS percentile from mobile) WHERE percentile > .99) ON *;
2 rows

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|    app_version     |      user_id       |      hw_make       |       state        |  firmware_version  |      support       |    global_ratio    |   outlier_count    |    total_count     |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|        v50         |         -          |         -          |         -          |         -          |      .873185       |     89.883198      |       902.0        |       1003.0       |
|         -          |         -          |       Emdoor       |         -          |         -          |      .873185       |     89.883198      |       902.0        |       1003.0       |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
macrobase-sql> \display tuple;
macrobase-sql> SELECT * FROM DIFF(SPLIT (SELECT *, percentile(battery_drain) AS percentile from mobile) WHERE percentile > .99) ON *;
(app_version: 50)
support=.873185, global_ratio=89.883198, outlier_count=902.0, total_count=1003.0

(hw_make: Emdoor)
support=.873185, global_ratio=89.883198, outlier_count=902.0, total_count=1003.0
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

1 participant