Skip to content

Instantly share code, notes, and snippets.

@mayhem
Created June 5, 2017 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayhem/7e2e74951739b0656bf30a7cb01a0f5f to your computer and use it in GitHub Desktop.
Save mayhem/7e2e74951739b0656bf30a7cb01a0f5f to your computer and use it in GitHub Desktop.
> show measurements;
name: measurements
name
----
"rob"
one_week.listen_count
> show retention policies;
name duration shardGroupDuration replicaN default
---- -------- ------------------ -------- -------
autogen 0s 168h0m0s 1 true
one_week 1h0m0s 1h0m0s 1 false
> select count(*) from "\"rob\"";
name: "rob"
time count_artist_msid count_artist_name count_recording_mbid count_recording_msid count_track_name
---- ----------------- ----------------- -------------------- -------------------- ----------------
0 4199 4199 2386 4199 4199
> select * from one_week.listen_count;
> select * from "\"one_week.listen_count\"";
> select * from "one_week"."listen_count";
> select * from "\"one_week\""."\"listen_count\"";
ERR: retention policy not found: "one_week"
> select * from one_week."\"listen_count\"";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment