siddharthteotia commented on a change in pull request #6914:
URL: https://github.com/apache/incubator-pinot/pull/6914#discussion_r632285805



##########
File path: 
pinot-tools/src/main/resources/examples/batch/githubEvents/githubEvents_offline_complexTypeHandling_table_config.json
##########
@@ -0,0 +1,33 @@
+{
+  "tableName": "githubEvents",
+  "tableType": "OFFLINE",
+  "tenants": {
+  },
+  "segmentsConfig": {
+    "segmentPushType": "REFRESH",
+    "replication": "1",
+    "timeColumnName": "created_at_timestamp"
+  },
+  "tableIndexConfig": {
+    "loadMode": "MMAP"
+  },
+  "ingestionConfig": {
+    "transformConfigs": [
+      {
+        "columnName": "created_at_timestamp",
+        "transformFunction": "fromDateTime(created_at, 
'yyyy-MM-dd''T''HH:mm:ss''Z''')"
+      },
+      {
+        "columnName": "payload_json",
+        "transformFunction": "jsonFormat(\"payload\")"
+      }
+    ],
+    "complexTypeConfig": {
+      "unnestFields": ["payload.commits"]
+    }

Review comment:
       I understand that any collections to unnest can be configured. Assuming 
payload is the name of a json/nested column, I was thinking of adding one 
example demonstrating the complete flattening from the root level




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



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

Reply via email to