You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by fj...@apache.org on 2020/01/21 17:03:02 UTC

[druid] branch 0.17.0 updated: Minor doc updates (#9217) (#9230)

This is an automated email from the ASF dual-hosted git repository.

fjy pushed a commit to branch 0.17.0
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/0.17.0 by this push:
     new 7375371  Minor doc updates (#9217) (#9230)
7375371 is described below

commit 737537156f3e22ddea39d956ca51b4ff3aab8f10
Author: Suneet Saldanha <44...@users.noreply.github.com>
AuthorDate: Tue Jan 21 09:02:50 2020 -0800

    Minor doc updates (#9217) (#9230)
    
    * update string first last aggs
    
    * update kafka ingestion specs in docs
    
    * remove unnecessary parser spec
---
 docs/querying/aggregations.md                      |  6 +-
 docs/tutorials/tutorial-kafka.md                   | 61 +++++++++---------
 .../tutorial/wikipedia-kafka-supervisor.json       | 75 +++++++++++-----------
 3 files changed, 67 insertions(+), 75 deletions(-)

diff --git a/docs/querying/aggregations.md b/docs/querying/aggregations.md
index 688b9ae..8e04050 100644
--- a/docs/querying/aggregations.md
+++ b/docs/querying/aggregations.md
@@ -215,8 +215,7 @@ Note that queries with first/last aggregators on a segment created with rollup e
   "type" : "stringFirst",
   "name" : <output_name>,
   "fieldName" : <metric_name>,
-  "maxStringBytes" : <integer> # (optional, defaults to 1024),
-  "filterNullValues" : <boolean> # (optional, defaults to false)
+  "maxStringBytes" : <integer> # (optional, defaults to 1024)
 }
 ```
 
@@ -231,8 +230,7 @@ Note that queries with first/last aggregators on a segment created with rollup e
   "type" : "stringLast",
   "name" : <output_name>,
   "fieldName" : <metric_name>,
-  "maxStringBytes" : <integer> # (optional, defaults to 1024),
-  "filterNullValues" : <boolean> # (optional, defaults to false)
+  "maxStringBytes" : <integer> # (optional, defaults to 1024)
 }
 ```
 
diff --git a/docs/tutorials/tutorial-kafka.md b/docs/tutorials/tutorial-kafka.md
index 36194d1..2c2a8c4 100644
--- a/docs/tutorials/tutorial-kafka.md
+++ b/docs/tutorials/tutorial-kafka.md
@@ -183,38 +183,32 @@ Paste in this spec and click `Submit`.
   "spec" : {
     "dataSchema": {
       "dataSource": "wikipedia",
-      "parser": {
-        "type": "string",
-        "parseSpec": {
-          "format": "json",
-          "timestampSpec": {
-            "column": "time",
-            "format": "auto"
-          },
-          "dimensionsSpec": {
-            "dimensions": [
-              "channel",
-              "cityName",
-              "comment",
-              "countryIsoCode",
-              "countryName",
-              "isAnonymous",
-              "isMinor",
-              "isNew",
-              "isRobot",
-              "isUnpatrolled",
-              "metroCode",
-              "namespace",
-              "page",
-              "regionIsoCode",
-              "regionName",
-              "user",
-              { "name": "added", "type": "long" },
-              { "name": "deleted", "type": "long" },
-              { "name": "delta", "type": "long" }
-            ]
-          }
-        }
+      "timestampSpec": {
+        "column": "time",
+        "format": "auto"
+      },
+      "dimensionsSpec": {
+        "dimensions": [
+          "channel",
+          "cityName",
+          "comment",
+          "countryIsoCode",
+          "countryName",
+          "isAnonymous",
+          "isMinor",
+          "isNew",
+          "isRobot",
+          "isUnpatrolled",
+          "metroCode",
+          "namespace",
+          "page",
+          "regionIsoCode",
+          "regionName",
+          "user",
+          { "name": "added", "type": "long" },
+          { "name": "deleted", "type": "long" },
+          { "name": "delta", "type": "long" }
+        ]
       },
       "metricsSpec" : [],
       "granularitySpec": {
@@ -230,6 +224,9 @@ Paste in this spec and click `Submit`.
     },
     "ioConfig": {
       "topic": "wikipedia",
+      "inputFormat": {
+        "type": "json"
+      },
       "replicas": 2,
       "taskDuration": "PT10M",
       "completionTimeout": "PT20M",
diff --git a/examples/quickstart/tutorial/wikipedia-kafka-supervisor.json b/examples/quickstart/tutorial/wikipedia-kafka-supervisor.json
index 7c1e62c..6602371 100644
--- a/examples/quickstart/tutorial/wikipedia-kafka-supervisor.json
+++ b/examples/quickstart/tutorial/wikipedia-kafka-supervisor.json
@@ -3,47 +3,41 @@
   "spec" : {
     "dataSchema": {
       "dataSource": "wikipedia",
-      "parser": {
-        "type": "string",
-        "parseSpec": {
-          "format": "json",
-          "timestampSpec": {
-            "column": "time",
-            "format": "auto"
+      "timestampSpec": {
+        "column": "time",
+        "format": "auto"
+      },
+      "dimensionsSpec": {
+        "dimensions": [
+          "channel",
+          "cityName",
+          "comment",
+          "countryIsoCode",
+          "countryName",
+          "isAnonymous",
+          "isMinor",
+          "isNew",
+          "isRobot",
+          "isUnpatrolled",
+          "metroCode",
+          "namespace",
+          "page",
+          "regionIsoCode",
+          "regionName",
+          "user",
+          {
+            "name": "added",
+            "type": "long"
+          },
+          {
+            "name": "deleted",
+            "type": "long"
           },
-          "dimensionsSpec": {
-            "dimensions": [
-              "channel",
-              "cityName",
-              "comment",
-              "countryIsoCode",
-              "countryName",
-              "isAnonymous",
-              "isMinor",
-              "isNew",
-              "isRobot",
-              "isUnpatrolled",
-              "metroCode",
-              "namespace",
-              "page",
-              "regionIsoCode",
-              "regionName",
-              "user",
-              {
-                "name": "added",
-                "type": "long"
-              },
-              {
-                "name": "deleted",
-                "type": "long"
-              },
-              {
-                "name": "delta",
-                "type": "long"
-              }
-            ]
+          {
+            "name": "delta",
+            "type": "long"
           }
-        }
+        ]
       },
       "metricsSpec": [],
       "granularitySpec": {
@@ -59,6 +53,9 @@
     },
     "ioConfig": {
       "topic": "wikipedia",
+      "inputFormat": {
+        "type": "json"
+      },
       "replicas": 1,
       "taskDuration": "PT10M",
       "completionTimeout": "PT20M",


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org