You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ap...@apache.org on 2020/07/23 03:39:43 UTC

[incubator-pinot] 01/01: update data generator schema json with dataTimeSpec

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

apucher pushed a commit to branch update-datetimespec-for-data-generator
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 5fafc1913ddbf2d58ee5d040ab04e091d3c49485
Author: Alexander Pucher <al...@alexpucher.com>
AuthorDate: Wed Jul 22 20:39:20 2020 -0700

    update data generator schema json with dataTimeSpec
---
 .../src/main/resources/generator/complexWebsite_schema.json   | 11 ++++++-----
 .../src/main/resources/generator/simpleWebsite_schema.json    | 11 ++++++-----
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/pinot-tools/src/main/resources/generator/complexWebsite_schema.json b/pinot-tools/src/main/resources/generator/complexWebsite_schema.json
index 99a349b..d4ab75c 100644
--- a/pinot-tools/src/main/resources/generator/complexWebsite_schema.json
+++ b/pinot-tools/src/main/resources/generator/complexWebsite_schema.json
@@ -27,12 +27,13 @@
       "name": "platform"
     }
   ],
-  "timeFieldSpec": {
-    "incomingGranularitySpec": {
-      "timeType": "HOURS",
+  "dateTimeFieldSpecs": [
+    {
+      "name": "hoursSinceEpoch",
       "dataType": "LONG",
-      "name": "hoursSinceEpoch"
+      "format": "1:HOURS:EPOCH",
+      "granularity": "1:HOURS"
     }
-  },
+  ],
   "schemaName": "complexWebsite"
 }
diff --git a/pinot-tools/src/main/resources/generator/simpleWebsite_schema.json b/pinot-tools/src/main/resources/generator/simpleWebsite_schema.json
index c7c015e..63cc46a 100644
--- a/pinot-tools/src/main/resources/generator/simpleWebsite_schema.json
+++ b/pinot-tools/src/main/resources/generator/simpleWebsite_schema.json
@@ -15,12 +15,13 @@
   ],
   "dimensionFieldSpecs": [
   ],
-  "timeFieldSpec": {
-    "incomingGranularitySpec": {
-      "timeType": "HOURS",
+  "dateTimeFieldSpecs": [
+    {
+      "name": "hoursSinceEpoch",
       "dataType": "LONG",
-      "name": "hoursSinceEpoch"
+      "format": "1:HOURS:EPOCH",
+      "granularity": "1:HOURS"
     }
-  },
+  ],
   "schemaName": "simpleWebsite"
 }


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