From 2c07e4c109f5c47df0852a1336ea51900f3fcbaf Mon Sep 17 00:00:00 2001 From: Frank Bertsch Date: Wed, 16 Nov 2016 21:48:14 -0600 Subject: [PATCH] Make dataset docs actually run --- moztelemetry/dataset.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/moztelemetry/dataset.py b/moztelemetry/dataset.py index 4716d6a..49ba5bf 100644 --- a/moztelemetry/dataset.py +++ b/moztelemetry/dataset.py @@ -67,11 +67,11 @@ class Dataset: Usage example:: bucket = 'test-bucket' - schema = ['submission_date', 'doc_type', 'platform'] + schema = ['submissionDate', 'docType', 'platform'] records = Dataset(bucket, schema) \\ - .where(doc_type='main') \\ - .where(submission_date=lambda x: x.startswith('201607')) \\ + .where(docType='main') \\ + .where(submissionDate=lambda x: x.startswith('201607')) \\ .where(dim1='linux') \\ .records(sc) @@ -198,8 +198,9 @@ class Dataset: Usage example:: records = Dataset.from_source('telemetry') \\ - .where(doc_type='main') \\ - .where(submission_date='20160701') + .where(docType='main') \\ + .where(submissionDate='20160701') \\ + .where(appUpdateChannel='nightly') """ meta_bucket = 'net-mozaws-prod-us-west-2-pipeline-metadata' store = S3Store(meta_bucket)